#include <bits/stdc++.h>
using namespace std;
const int maxn = 10010;
long long num[maxn];
int n;
bool judge() {
  for (int i = 0; i < n - 1; i++) {
    if ((num[i] * num[i + 1]) % 4 != 0) return false;
  }
  return true;
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%lld", &num[i]);
  }
  sort(num, num + n);
  bool flag;
  do {
    flag = judge();
    if (flag == true) {
      printf("Yes\n");
      return 0;
    }
  } while (next_permutation(num, num + n));
  printf("No\n");
  return 0;
}
