#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> ara;
  long long sum = 1;
  int n, m, co = 0, i, j, temp;
  while (scanf("%d", &n) == 1) {
    while (n--) {
      scanf("%d", &m);
      ara.push_back(m);
    }
    sort(ara.begin(), ara.end());
    for (i = 0; i < ara.size() - 1; i++) {
      for (j = i + 1; j < ara.size(); j++) {
        if ((ara[i] * ara[j]) % 4 == 0) {
          temp = ara[j];
          ara[j] = ara[i + 1];
          ara[i + 1] = temp;
          co++;
          break;
        }
      }
    }
    if (co == ara.size() - 1)
      printf("Yes\n");
    else
      printf("No\n");
    co = 0;
    ara.clear();
  }
  return 0;
}
