#include <bits/stdc++.h>
using namespace std;
int Array[100005];
int hashTable[100005] = {false};
int flag;
int n;
void generaP(int index, int before, int next) {
  if (flag == true) return;
  if (before != -1 && next != -1) {
    long long result = Array[before] * Array[next];
    if (result % 4 != 0) return;
  }
  if (n == index) {
    flag = true;
    return;
  }
  for (int i = 0; i < n; i++) {
    if (hashTable[i] == false) {
      hashTable[i] = true;
      generaP(index + 1, next, i);
      hashTable[i] = false;
    }
  }
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> Array[i];
  }
  flag = false;
  generaP(0, -1, -1);
  if (flag == true)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
