#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int ans = n, t = 0;
  for (int i = 0; i < n; i++) {
    if (!(a[i] % 4)) {
      ans -= 3;
    } else if (!(a[i] % 2)) {
      t++;
    }
  }
  if (t == 1) {
    t = 0;
  }
  cout << (ans - t <= 0 ? "Yes\n" : "No\n");
  return 0;
}
