#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, i, j, k, x;
  cin >> n;
  map<int, int> ct;
  for (i = 0; i < n; i++) {
    cin >> x;
    ct[x]++;
  }
  bool ans = false;
  if (ct[2] == n)
    ans = true;
  else if ((ct[1] + ct[4] == n) && (abs(ct[1] - ct[4]) <= 1))
    ans = true;
  if (ans)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
