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