#include <bits/stdc++.h>
const long long mod = 1e9 + 7;
const long long inf = 0x3f3f3f3f;
using namespace std;
int main() {
  long long n, x, sum = 0;
  scanf("%lld", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    sum = sum * x % 4;
  }
  printf(sum == 0 ? "Yes\n" : "No\n");
  return 0;
}
