#include <bits/stdc++.h>
using namespace std;
const int maxk = 100 + 7;
int a[maxk];
int tmp, t1, t2;
int n, k;
int main() {
  while (scanf("%d%d", &n, &k) == 2) {
    for (int i = 1; i <= k; i++) scanf("%d", &a[i]);
    t1 = n, t2 = 2 * n;
    for (int i = 1; i <= k; i++) {
      tmp = min(t1, a[i] / 4);
      t1 -= tmp;
      a[i] -= tmp * 4;
    }
    t2 = t2 + t1;
    for (int i = 1; i <= k; i++) {
      tmp = min(t2, a[i] / 2);
      t2 -= tmp;
      a[i] -= tmp * 2;
    }
    tmp = t2 + t1;
    for (int i = 1; i <= k; i++) {
      tmp -= a[i];
    }
    if (tmp < 0)
      printf("NO\n");
    else
      printf("YES\n");
  }
  return 0;
}
