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