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