n=int(input()) L=list(map(int,input().split())) p,m=0,0 for e in L: if e<0: m+=e else: p+=e tot=m+p ans="No" if tot==0: ans="Yes" if 0