N = int(input()) A = list(map(int, input().split())) if any(A): print("Yes") else: print("No")