#include using namespace std; typedef long long ll; int main() { int n; cin >> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } bool ok = false; for (int i = 0; i < n; i++) { if (a[i] == 0 || a[i] == 1) ok = true; } if (ok) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }