#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, f, g, h, j, k = 0, l, arr[100001], vis[100001];
int main() {
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < a; i++) {
    for (int j = i + 1; j < a; j++) {
      if ((arr[i] * arr[j]) % 4 == 0 && vis[i] < 2 && vis[j] < 2) {
        k++;
        vis[i]++;
        vis[j]++;
      }
    }
  }
  if (k == (a - 1)) {
    cout << "Yes";
    return 0;
  } else {
    cout << "No";
    return 0;
  }
}
