#include <bits/stdc++.h>
using namespace std;
int a[10005];
int main(void) {
  int n;
  while (~scanf("%d", &n)) {
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    int c = 0;
    do {
      int flag = 1;
      for (int i = 1; i <= n - 1; i++)
        if (a[i] * a[i + 1] % 4 != 0) {
          flag = 0;
          break;
        }
      if (flag) {
        c = 1;
        break;
      }
    } while (next_permutation(a + 1, a + 1 + n));
    if (c)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
