N=int(input()) A=list(map(int,input().split())) z=sum(A) if z>0: print('Yes') else: print('No')