#include <bits/stdc++.h>
using namespace std;
int N;
vector<long long> A(100001, 0);
int main(void) {
  scanf("%d", &N);
  for (int i = 0; i < N; ++i) scanf("%lld", &A[i]);
  int cnt = 0;
  int num = 0;
  for (int i = 0; i < N; ++i) {
    if (A[i] % 4 == 0) ++cnt;
    if (A[i] == 2) ++num;
    if (num == 2) ++cnt, num = 0;
  }
  if (N / 2 <= cnt)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
