#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  vector<int> C(3, 0);
  for (int i = 0; i < N; i++) {
    int a, cnt = 0;
    cin >> a;
    while (a % 2 == 0) {
      cnt++;
      a /= 2;
      if (cnt == 2) break;
    }
    C[cnt]++;
  }
  bool flag = true;
  if (C[0] > C[2]) flag = false;
  if (N == 3 && C[0] == 2 && C[2] == 1) flag = true;
  if (flag)
    cout << "Yes" << '\n';
  else
    cout << "No" << '\n';
  return 0;
}
