#include <bits/stdc++.h>
using namespace std;
int a[10000 + 10];
int main() {
  int n, t;
  while (~scanf("%d", &n)) {
    t = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (a[i] % 4 == 0) t++;
    }
    if (t >= n / 3 && n % 3 == 0)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
