#include <bits/stdc++.h>
using namespace std;
int n, k, t4, t2, t1, c[4], a[100001];
bool f;
string s;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  t4 = n;
  t2 = n * 2;
  for (int i = 0; i < k; ++i) {
    cin >> a[i];
    c[4] += (a[i] / 4);
    ++c[a[i] % 4];
  }
  while (c[4] && (t4 || t2 / 2)) {
    --c[4];
    if (t4)
      --t4;
    else
      t2 -= 2;
  }
  while (c[3] && (t4 || t2 / 2)) {
    --c[3];
    if (t4)
      --t4;
    else
      t2 -= 2;
  }
  if (c[3]) c[2] += c[3], c[1] += c[3];
  while (c[2] && (t4 || t2)) {
    --c[2];
    if (t2)
      --t2;
    else
      --t4, ++t1;
  }
  if (c[2]) c[1] += (c[2] * 2);
  while (c[1] && (t4 || t2 || t1)) {
    --c[1];
    if (t1)
      --t1;
    else if (t2)
      --t2;
    else
      --t4, --c[1];
  }
  if (c[1] > 0)
    cout << "no" << endl;
  else
    cout << "yes" << endl;
  return 0;
}
