func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MOD = 1000000007;   const int N = 10;   int n, k;   int a[1005];   int main() {     ios_base::sync_with_stdio(false);     cin >> n >> k;     int nn = n;     for (int i = 0; i < k; i++) {       cin >> a[i];       while (a[i] >= 4 && nn > 0) {         a[i] -= 4;         nn--;       }     }     int n2 = n * 2 + nn;     for (int i = 0; i < k; i++) {       while (a[i] >= 2 && n2 > 0) {         a[i] -= 2;         n2--;       }     }     int sum = 0;     for (int i = 0; i < k; i++) {       sum += a[i];     }     if (sum > nn + n2) {       cout <<  NO  << endl;     } else {       cout <<  YES  << endl;     }     return 0;   }   