N = int(input()) A = [int(a) for a in input().split()] for i in range(N): if A[i] < 2: print("Yes") break else: print("No")