#include <bits/stdc++.h>
using namespace std;
const int M = 1e5 + 10;
int main() {
  int n, a;
  int f, t, o;
  while (cin >> n) {
    f = 0, t = 0, o = 0;
    for (int i = 0; i < n; ++i) {
      scanf("%d", &a);
      if (a % 4 == 0)
        ++f;
      else if (a % 2 == 0)
        ++t;
      else if (a == 1)
        ++o;
    }
    int cnt = f * 2 + t / 2;
    if (cnt >= n - o && n != o)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
