#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int pro = 1, a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    pro *= a;
  }
  if (pro % n == 0)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
