#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, a[1000000], ans = 1, r;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    ans = ans * a[i];
  }
  r = ans % 4;
  if (r == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
