#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, los = 0;
  cin >> n;
  vector<int> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      if ((arr[i] * arr[j]) % 4 == 0) {
        swap(arr[i + 1], arr[j]);
        break;
      }
      if (j == n - 1 && (arr[j] * arr[i]) % 4 != 0) {
        cout << "No";
        los = 1;
      }
    }
  }
  if (los != 1) cout << "Yes";
  return 0;
}
