#include <bits/stdc++.h>
using namespace std;
const int MAX = 5e5 + 10;
int arr[4];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int temp;
    scanf("%d", &temp);
    arr[temp % 4]++;
  }
  if (arr[0] >= arr[1] + arr[3])
    printf("YES");
  else if (arr[0] == arr[1] + arr[3] - 1 && arr[2] == 0 && arr[0] > 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
