#include <bits/stdc++.h>
const long long MOD = 1e9 + 7;
using pii = std::pair<long long, long long>;
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n;
  cin >> n;
  long long arr[n];
  long long c4 = 0, c2 = 0;
  for (long long i = 0; i < n; i++) {
    if (arr[i] % 4 == 0)
      c4++;
    else if (arr[i] % 2 == 0)
      c2++;
  }
  cout << (2 * c4 + c2 >= n) ? "YES" : "NO";
  return 0;
}
