#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const double PI = 3.141592653589793238463;
const int N = 4e5 + 100;
int a[4];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int x;
  cin >> x;
  int y[x];
  for (int i = 0; i < x; i++) {
    cin >> y[i];
    a[y[i] % 4]++;
  }
  cout << ((a[1] && !a[0]) || (a[3] && !a[0]) ? "No" : "YES");
  return 0;
}
