#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, i, s = 0, c = 0;
  cin >> n >> k;
  int a[k];
  for (i = 0; i < k; i++) {
    cin >> a[i];
    if (a[i] % 2 != 0) {
      a[i]++;
      c++;
    }
    s += a[i];
  }
  if (s > 8 * n)
    cout << "NO";
  else if (s == 8 * n) {
    if (k == 4 * n && c < n)
      cout << "NO";
    else
      cout << "YES";
  } else
    cout << "YES";
  return 0;
}
