#include <bits/stdc++.h>
using namespace std;
int arr[200000];
map<int, int> mp;
int main() {
  long long int n, a, c = 0, c1 = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      if ((arr[i] * arr[j]) % 4 == 0 && i != j) {
        mp[arr[i]]++;
      }
    }
    if (mp[arr[i]] != 0) {
      c++;
    }
    if (mp[arr[i]] > 1) {
      c1++;
    }
  }
  if (c == n && c1 >= n - 2) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
