#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  cin >> x;
  long long s;
  long long a = 1;
  for (int i = 0; i < x; i++) {
    cin >> s;
    s %= 4;
    if (s == 0) s = 4;
    a *= s;
  }
  if ((s / x) % 4 == 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
