#include <bits/stdc++.h>
using namespace std;
int a[10010];
int main() {
  int n, k, t;
  scanf("%d%d", &n, &k);
  for (int i = 1; i <= k; i++) scanf("%d", &a[i]);
  int s1 = 0, s2 = 2 * n, s4 = n;
  for (int i = 1; i <= k; i++) {
    t = min(s4, a[i] / 4);
    a[i] -= 4 * t;
    s4 -= t;
  }
  s1 += s4, s2 += s4;
  for (int i = 1; i <= k; i++) {
    t = min(s2, a[i] / 2);
    a[i] -= 2 * t;
    s2 -= t;
  }
  s1 += s2;
  bool flag = 1;
  for (int i = 1; i <= k; i++) {
    if (a[i] > s1) {
      flag = 0;
      break;
    }
    s1 -= a[i];
  }
  if (!flag)
    printf("NO\n");
  else
    printf("YES\n");
}
