N = int(input()) H,W = list(map(int,input().split())) if(H == 1 or W == 1): print("Yes") elif(H == W): print("Yes") else: print("No")