#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  vector<long long> v;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int num;
    cin >> num;
    v.push_back(num);
  }
  for (auto itr = v.begin(); itr != v.end();) {
    bool is = false;
    for (auto i = itr + 1; i != v.end();) {
      if ((*itr * *i) % 4 == 0) {
        itr = v.erase(itr);
        itr = v.erase(i);
        is = true;
        break;
      } else {
        ++i;
      }
    }
    if (!is) {
      ++itr;
    }
  }
  string ans = v.empty() ? "Yes" : "No";
  cout << ans << endl;
  return 0;
}
