#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  int a, b, cnt = 0;
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> b;
    v.push_back(b);
  }
  do {
    for (int i = 0; i <= a - 1; i++) {
      cnt = v[i] * v[i + 1];
      if (cnt % 4 == 0) {
        cout << "Yes";
        return 0;
      }
    }
  } while (next_permutation(v.begin(), v.end()));
  cout << "No";
}
