#include <bits/stdc++.h>
using namespace std;
inline int to_int(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string to_string(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
int count2(int n) {
  int res = 0;
  while (n) {
    if (!(n & 1)) {
      res++;
      n /= 2;
    } else
      break;
    if (res >= 2) break;
  }
  return res;
}
int main() {
  int N;
  cin >> N;
  vector<int> v;
  {
    v.clear();
    v.reserve(N);
    for (int i = (0); i < (N); ++i) {
      typename decltype(v)::value_type x;
      cin >> x;
      v.emplace_back(x);
    }
  };
  ;
  transform(v.begin(), v.end(), v.begin(), count2);
  int num0 = std::count(v.begin(), v.end(), 0);
  int num2 = std::count(v.begin(), v.end(), 2);
  cout << (num2 >= num0 ? "Yes" : "No") << endl;
  return 0;
}
