#include <bits/stdc++.h>
using namespace std;
int a[10005];
int main() {
  int n, k;
  while (cin >> n >> k) {
    for (int i = (1); i <= (k); ++i) cin >> a[i];
    int sum1 = n, sum2 = n * 2;
    for (int i = (1); i <= (k); ++i) {
      int temp = min(a[i] / 4, sum1);
      sum1 -= temp;
      a[i] -= 4 * temp;
    }
    sum2 += sum1;
    for (int i = (1); i <= (k); ++i) {
      int temp = min(a[i] / 2, sum2);
      sum2 -= temp;
      a[i] -= 2 * temp;
    }
    int sum = sum2 + sum1;
    for (int i = (1); i <= (k); ++i) sum -= a[i];
    if (sum >= 0)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
