n = int(input()) h, w = map(int, input().split()) if w == 1: print("Yes") elif h == 1: print("Yes") elif h == w: print("Yes") else: print("No")