#include <bits/stdc++.h>
const int maxn = 100;
int n, p[maxn], value[maxn];
bool hashtable[maxn] = {false};
bool flag = false;
void Pgenerate(int index) {
  if (flag == true) return;
  if (index == n) {
    int i;
    for (i = 0; i < n - 1; i++) {
      if (p[i] * p[i + 1] % 4 != 0) break;
    }
    if (i == n - 1) {
      printf("Yes\n");
      flag = true;
    }
    return;
  }
  for (int i = 0; i < n; i++) {
    if (hashtable[i] == false) {
      p[index] = value[i];
      hashtable[i] = true;
      Pgenerate(index + 1);
      hashtable[i] = false;
    }
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &value[i]);
  }
  Pgenerate(0);
  if (flag == false) printf("No\n");
  return 0;
}
