N = int(input()) mina = min(list(map(int,input().split()))) if mina <= 1: print("Yes") else: print("No")