n=int(input()) a=list(map(int,input().split()));ans="No" for i in range(n): if a[i]: ans="Yes" print(ans)