#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = 0, t, t1, t2, b = 0;
  for (int i = 0; i < n; i++) {
    cin >> t1;
    t = t1;
    t2 = t1;
    while (t % 2 == 0) {
      t = t / 2;
      a++;
    }
    if (t2 % 4 == 0) {
      b++;
    }
  }
  if (a >= n || (b > 0 && b >= n - 2)) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
