#include <bits/stdc++.h>
int main() {
  int n, count = 0, num = 0;
  scanf("%d", &n);
  int arr[n + 1], obs[n + 1];
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  for (int i = 0; i < n - 1; i++) {
    for (int j = i + 1; j < n; j++) {
      if (((arr[i] * arr[j]) % 4) != 0) {
        count++;
        obs[i] = 1;
        obs[j] = 1;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (obs[i] == 1) num++;
  }
  if (count == n - 1 && num == n - 1)
    printf("No");
  else if (count >= n)
    printf("No");
  else
    printf("yes");
}
