#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  int div2{}, div4{}, divo{};
  for (int i = 0; i < n; i++) {
    if (arr[i] % 4 == 0)
      div4++;
    else if (arr[i] % 2 == 0)
      div2++;
    else
      divo++;
  }
  if (div2 == 0) {
    if (divo - div4 <= 1)
      cout << "YES";
    else {
      cout << "NO";
    }
    return 0;
  } else {
    if (divo <= div4)
      cout << "YES";
    else {
      cout << "NO";
    }
    return 0;
  }
  return 0;
}
