#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count4, count2;
  cin >> n;
  vector<int> a;
  a.resize(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  count4 = count2 = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] % 4 == 0)
      count4++;
    else if (a[i] % 2 == 0)
      count2++;
  }
  if ((n / 2) == (count4 + (count2 / 2)))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
