n=int(input()) a=list(map(int,input().split())) s=sum(a) if s>0: if max(a)s: print("No") exit() print("Yes")