#include <bits/stdc++.h>
using namespace std;
int N, a, cnt4, cnt2, cnt1;
int main() {
  cin >> N;
  for (int i = 0; i != N; ++i) {
    cin >> a;
    if (a >> 2 << 2 == a)
      ++cnt4;
    else if (a >> 1 << 1 == a)
      ++cnt2;
    else
      ++cnt1;
  }
  cout << (cnt1 > cnt4 ? "No" : "Yes") << endl;
  return 0;
}
