#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int dx[] = {1, 0, -1, 0};
int dy[] = {0, -1, 0, 1};
const ll INF = 10010010010001;
vector<vector<bool>> graph;
vector<bool> reached;
ll MOD = 998244353;
int main() {
  int N;
  cin >> N;
  int div4 = 0, div2 = 0;
  for (int i = 0; i < N; i++) {
    ll x;
    cin >> x;
    if (x % 4 == 0)
      div4++;
    else if (x % 2 == 0)
      div2++;
  }
  string ans = "No";
  if (div4 * 3 + (div2 / 2) >= N) {
    ans = "Yes";
  }
  cout << ans << endl;
}
