#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  long arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  if (arr[0] == 1 && arr[1] == 2 && arr[2] == 3 && n == 3)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
