n = int(input()) y,x = list(map(int,input().split())) if y == 1 or x == 1 or y == x: print("Yes") else: print("No")