#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[100002];
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  int flag;
  sort(a, a + n);
  do {
    flag = 1;
    for (int i = 0; i < n - 1; i++) {
      if ((a[i] * a[i + 1]) % 4) {
        flag = 0;
        break;
      }
    }
    if (flag == 1) break;
  } while (next_permutation(a, a + n));
  printf("%s\n", flag ? "Yes" : "No");
}
