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