#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n;
  int ans = 0;
  int a = 0, b = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x == 2 || x == 10)
      a++;
    else if (x % 4 == 0)
      ans++;
    else
      b++;
  }
  b += ((a + 1) / 2);
  if (ans >= b - 1)
    cout << "Yes" << '\n';
  else
    cout << "No" << '\n';
  return 0;
}
