#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long a[100010];
  while (scanf("%d", &n) != EOF) {
    for (int i = 1; i <= n; i++) {
      scanf("%lld", &a[i]);
    }
    sort(a + 1, a + n + 1);
    int flag1 = 0;
    do {
      int flag2 = 0;
      for (int i = 1; i < n; i++) {
        if (((a[i] % 4) * (a[i + 1] % 4)) % 4 != 0) {
          flag2 = 1;
          break;
        }
      }
      if (flag2 == 0) {
        printf("Yes\n");
        flag1 = 1;
        break;
      }
    } while (next_permutation(a + 1, a + n + 1));
    if (flag1 == 0) {
      printf("No\n");
    }
  }
  return 0;
}
