#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int n;
  long a[100000];
  double g = 0.0;
  double g4 = 0.0;
  double result;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    if (a[i] % 2 == 0) {
      g++;
      if (a[i] == 4) g4++;
    }
  }
  result = ((g) / (n)) * 3.0;
  if (g4 == n / 3 || (result != 0 && floor(result) == result))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
