#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x, y, z;
  x = y = z = 0;
  for (int i = 0; i < n; i++) {
    int m;
    cin >> m;
    if (m % 4 == 0)
      x++;
    else if (m % 2 == 0)
      y++;
    else
      z++;
  }
  if (z > x && y)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
