#include <bits/stdc++.h>
using namespace std;
int a[10005];
int main() {
  int n, f = 0, i, x = 0, y = 0;
  while (cin >> n) {
    for (i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (i = 0; i < n; i++) {
      if (a[i] % 4 == 0) x++;
      if (a[i] % 2 == 0 && a[i] % 4 != 0) y++;
      if (x * 2 + y >= n || x >= n) f = 1;
    }
    if (f)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
