#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N;
  cin >> N;
  long long a = 0;
  long long b = 0;
  long long c = 0;
  for (long long i = 0; i < N; i++) {
    long long x;
    cin >> x;
    if (x % 4 == 0)
      a++;
    else if (x / 2 == 1)
      b++;
    else
      c++;
  }
  if (a >= b)
    cout << "Yes" << endl;
  else if ((b - a == 1) & (c == 0))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
