#include <bits/stdc++.h>
bool debug = true;
int N;
int main() {
  std::cin >> N;
  int cnt_2 = 0, cnt_4 = 0;
  for (long i = 0; i < (N); ++i) {
    int a;
    std::cin >> a;
    if (a % 4 == 0) {
      ++cnt_4;
    } else if (a % 2 == 0) {
      ++cnt_2;
    }
  }
  if (cnt_2 == 0) {
    std::cout << ((cnt_4 >= (N - cnt_4 - cnt_2 - 1)) ? "YES" : "NO")
              << std::endl;
  } else {
    std::cout << ((cnt_4 >= (N - cnt_4 - cnt_2)) ? "YES" : "NO") << std::endl;
  }
}
