#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 (divo > div4 + 1 || (divo == div4 + 1 && div2 != 0))
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
  }
  return 0;
}
