#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> vec, ans;
  map<int, int> m;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int num;
    cin >> num;
    vec.push_back(num);
    m[num]++;
  }
  ans.push_back(vec[0]);
  m[vec[0]]--;
  int i, j;
  int count = 1;
  for (i = 0; i < n - 1; i++) {
    for (j = 0; j < n; j++) {
      if ((ans[i] * vec[j]) % 4 == 0) {
        if (m[vec[j]] > 0) {
          ans.push_back(vec[j]);
          count++;
          m[vec[j]]--;
          break;
        }
      }
    }
  }
  if (count == n)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  system("pause");
}
