#include <bits/stdc++.h>
using namespace std;
const int MAXN = 10005;
int main(int argc, char const *argv[]) {
  int N, num[MAXN];
  bool flag = false;
  cin >> N;
  for (int i = 0; i < N; ++i) cin >> num[i];
  sort(num, num + N, less<int>());
  do {
    int i;
    for (i = 1; i < N; ++i)
      if (num[i - 1] * num[i] % 4 != 0) break;
    if (i == N) {
      flag = true;
      break;
    }
  } while (next_permutation(num, num + N));
  if (flag)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
