#include <bits/stdc++.h>
int main() {
  int n, i, j, nC2, count = 0;
  long long a[100000];
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%lld", &a[i]);
  }
  nC2 = n * (n - 1) / 2;
  for (j = 0; j < n - 1; j++) {
    for (i = j; i < n - 1; i++) {
      if ((a[j] * a[i + 1]) % 4 == 0) {
        count++;
      }
    }
  }
  if (count * 2 > nC2) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
