import sys input = sys.stdin.readline N=int(input()) A=list(map(int,input().split())) for a in A: if a!=0: print("Yes") break else: print("No")