#include <bits/stdc++.h>
int main() {
  int n;
  std::cin >> n;
  std::vector<int> a2, a4, a;
  for (int i = 0; i < n; i++) {
    int tmp;
    std::cin >> tmp;
    if (tmp % 4 == 0) {
      a4.push_back(tmp);
    } else if (tmp % 2 == 0) {
      a2.push_back(tmp);
    } else {
      a.push_back(tmp);
    }
  }
  if (a.empty()) {
    std::cout << "YES" << std::endl;
    return 0;
  }
  if (a.size() - 1 < a4.size()) {
    std::cout << "YES" << std::endl;
  } else {
    if (a2.size() == 0 && a.size() - 1 == a4.size()) {
      std::cout << "YES" << std::endl;
    } else {
      std::cout << "NO" << std::endl;
    }
  }
  return 0;
}
