#include <bits/stdc++.h>
using namespace std;
int a[3];
int main() {
  int n;
  cin >> n;
  for (int i = 0; n > i; i++) {
    int tmp;
    cin >> tmp;
    if (tmp % 4 == 0)
      a[2]++;
    else if (tmp % 2 == 0)
      a[1]++;
    else
      a[0]++;
  }
  if (a[2] < a[0] && a[1] > 0)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
