n=int(input()) L=list(map(int,input().split())) print("Yes" if sum(L)!=0 else "No")