N = input() print("Yes" if max([int(x) for x in input().split()]) > 0 else "No")