#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  long long s[100001];
  for (int i = 0; i < x; i++) cin >> s[i];
  long long h[100000];
  h[0] = s[0];
  bool e = false;
  s[0] = -1;
  for (int i = 1; i < x; i++) {
    for (int j = i; j < x; j++) {
      e = false;
      if ((s[j] * h[j - 1]) % 4 == 0 && s[j] != -1) {
        e = true;
        h[j] = s[j];
        s[j] = -1;
        swap(s[j], s[i]);
        break;
      }
    }
  }
  if (e)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
