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