#include <bits/stdc++.h>
using namespace std;
int main() {
  signed long long int a, i, b, mult = 1, cnt = 0, check = 0;
  cin >> a;
  for (i = 0; i < a; i++) {
    cin >> b;
    b %= 4;
    if (b == 0)
      cnt++;
    else {
      check++;
      mult *= b;
    }
    while (check > 1 && mult % 4 == 0) {
      cnt++;
      mult /= 4;
      check -= 2;
    }
  }
  if (cnt * 3 >= a)
    cout << "Yes";
  else
    cout << "No";
}
