#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt2 = 0;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int t;
    cin >> t;
    if (t % 4 == 0) ans++;
    if (t == 2) cnt2++;
  }
  ans += cnt2 / 2;
  if (ans >= n / 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  getchar();
  getchar();
  return 0;
}
