#include <bits/stdc++.h>
int func(int n, int a[], int flag[], int avg, int cnt) {
  for (int j = 0; j < n; j++) {
    if (flag[j] == 0) {
      if ((avg * a[j]) % 4 == 0) {
        flag[j] = 1;
        cnt++;
        if (cnt == n) {
          printf("Yes\n");
          exit(0);
        }
        return func(n, a, flag, a[j], cnt);
      }
    }
  }
  return 0;
}
int main(void) {
  int i, n, a[100001], flag[100001] = {0}, result = 0, avg = 0, cnt = 1;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf(" %d", &a[i]);
  }
  for (int i = 0; i < n; i++) {
    flag[i] = 1;
    func(n, a, flag, a[i], cnt);
    for (int j = 0; j < n; j++) {
      flag[j] = 0;
    }
  }
  printf("No\n");
  return 0;
}
