import sys input = sys.stdin.readline N = int(input()) A = list(map(int, input().split())) S = sum(A) if S>0: print("Yes") else: print("No")