#include <bits/stdc++.h>
int main(void) {
  int n, i, a, b[3], cnt;
  scanf("%d", &n);
  for (i = 0; i < 3; i++) b[i] = 0;
  for (i = 0; i < n; i++) {
    scanf("%d", &a);
    cnt = 0;
    while (a /= 2) cnt++;
    if (cnt == 0)
      b[0]++;
    else if (cnt == 1)
      b[1]++;
    else
      b[2]++;
  }
  if (n / 2 - b[1] / 2 <= b[2])
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
