#include <bits/stdc++.h>
using namespace std;
int main() {
  int lines = 0;
  scanf("%d", &lines);
  vector<int> allnums;
  for (int i = 0; i < lines; ++i) {
    int num = 0;
    scanf("%d", &num);
    allnums.push_back(num);
  }
  int test4ok[500000] = {0};
  int testeachnum[500000] = {0};
  bool bluck = true;
  for (int i = 0; i < lines - 1; ++i) {
    for (int j = i + 1; j < lines; ++j) {
      if (testeachnum[j] > 1) continue;
      int muti = allnums[i] * allnums[j];
      if (muti % 4 == 0) {
        test4ok[i] = 1;
        testeachnum[j]++;
        break;
      }
    }
  }
  for (int i = 0; i < lines - 1; ++i) {
    if (test4ok[i] == 0) bluck = false;
  }
  if (bluck)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  system("pause");
}
