#include <bits/stdc++.h>
int get_type(int num) {
  if (num % 2 == 1)
    return 2;
  else if (num % 4 == 0)
    return 0;
  else
    return 1;
}
int main(void) {
  int k, s, g, array[1000], i = 0, N;
  char s1[100000];
  char *tok;
  scanf("%d", &N);
  gets(s1);
  gets(s1);
  tok = strtok(s1, ". ");
  array[i++] = atoi(tok);
  while (1) {
    tok = strtok(NULL, ". ");
    if (tok == NULL) break;
    array[i++] = atoi(tok);
  }
  for (i = 0; i < N; i++) {
    array[i] = get_type(array[i]);
    switch (array[i]) {
      case 0:
        s++;
        break;
      case 1:
        g++;
        break;
      default:
        k++;
    }
  }
  if (k == s + 1) {
    if (k + s == N)
      printf("Yes");
    else
      printf("No");
  } else if (k == s) {
    printf("Yes");
  } else if (k > s) {
    printf("No");
  } else {
    printf("Yes");
  }
  return EXIT_SUCCESS;
}
