#include <bits/stdc++.h>
using namespace std;
bool test(vector<int> a) {
  for (int i = 0; i < a.size() - 1; i++) {
    if (a[i] * a[i + 1] % 4 != 0) return false;
  }
  return true;
}
bool search(vector<int>& a, vector<int> arry, vector<bool>& hash) {
  int size = arry.size();
  for (int i = 0; i < size; i++) {
    if (hash[i] != true) {
      hash[i] = true;
      a.push_back(arry[i]);
      if (a.size() == size) {
        if (test(a)) return true;
      } else {
        bool ii = search(a, arry, hash);
        if (ii) return true;
      }
      a.pop_back();
      hash[i] = false;
    }
  }
  return false;
}
int main() {
  int nums;
  scanf("%d", &nums);
  vector<int> arry(nums);
  vector<int> a;
  vector<bool> hash(nums, false);
  for (int i = 0; i < nums; i++) {
    int temp;
    scanf("%d", &temp);
    arry[i] = temp;
  }
  if (search(a, arry, hash)) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}
