#include <bits/stdc++.h>
using namespace std;
int tag_name[3];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp % 4 == 0)
      tag_name[2] += 1;
    else if (tmp % 2 == 0)
      tag_name[1] += 1;
    else
      tag_name[0] += 1;
  }
  if (tag_name[2] == 1)
    n -= 2;
  else if (tag_name[2] > 1)
    n -= (tag_name[2] + 1);
  n -= tag_name[2];
  n -= tag_name[1] / 2 * tag_name[1];
  for (int i = 0; i < n; i++) cout << tag_name[i] << endl;
  if (n <= 0)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
