#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count2 = 0, count4 = 0;
  cin >> n;
  vector<int> s;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
    if (s[i] % 4 == 0)
      count4++;
    else if (s[i] % 2 == 0)
      count2++;
  }
  if (count4 >= n / 2)
    cout << "YES" << endl;
  else if (count2 == n)
    cout << "YES" << endl;
  else if (count2 >= n - count4 * 2)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
