#include <bits/stdc++.h>
using namespace std;
static bool flag = false;
void Swap(int *lhs, int *rhs) {
  int t = *lhs;
  *lhs = *rhs;
  *rhs = t;
}
void FullPermutation(int source[], int begin, int end) {
  int i;
  if (begin >= end) {
    for (i = 0; i < end - 1; i++) {
      if ((source[i] * source[i + 1]) % 4 != 0) break;
    }
    if (i == end - 1) flag = true;
  } else {
    for (i = begin; i < end; i++) {
      if (begin != i) {
        Swap(&source[begin], &source[i]);
      }
      FullPermutation(source, begin + 1, end);
      if (begin != i) {
        Swap(&source[begin], &source[i]);
      }
    }
  }
}
int main() {
  int source[30];
  int i, count;
  scanf("%d", &count);
  for (i = 0; i < count; i++) {
    scanf("%d", &source[i]);
  }
  FullPermutation(source, 0, count);
  if (flag == true)
    printf("Yes");
  else
    printf("No");
  return 0;
}
