#include<iostream>
#include<cassert>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	int N;cin>>N;
	bool fn=false;
	for(;N--;)
	{
		int a;cin>>a;
		if(a<=1)fn=true;
	}
	cout<<(fn?"Yes":"No")<<endl;
}