#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  int a = 0, b = 0, c = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    if (x % 4 == 0)
      a++;
    else
      b++;
    if (x % 2 == 0 && x % 4 != 0) c++;
  }
  if (c > 1) b -= (c - 1);
  if (b - a <= 1)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
}
