#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int i, j, n;
  static int count = 0;
  long arr[100001];
  cin >> n;
  for (i = 0; i < n; i++) cin >> arr[i];
  for (i = 0; i < n - 1; i++)
    for (j = i + 1; j < n; j++)
      if ((arr[i] * arr[j]) % 4 == 0) count++;
  if (count > (n * (n - 1) / 4))
    cout << "YES";
  else
    cout << "NO";
  return EXIT_SUCCESS;
}
