#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> V(N);
  for (int &v : V) cin >> v;
  sort(V.begin(), V.end());
  if (V.size() != 3 || V[0] != 1 || V[1] != 2 || V[2] != 3)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
