#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10;
int a[N];
int main() {
  long long i, j, k = 1, n;
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> j;
    k *= j;
  }
  if (k % 4 == 0) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
