n = int(input()) a = [int(x) for x in input().split()] for i in a: if i > 0: print("Yes") break else: print("No")