#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long a[n];
  int i;
  int cnt = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 0) cnt++;
    if (a[i] % 4 == 0) cnt++;
  }
  if (cnt >= n)
    cout << "Yes";
  else
    cout << "No";
}
