import sys input = sys.stdin.readline N=int(input()) h,w=list(map(int,input().split())) if h==1 or w==1 or h-w==0: print("Yes") else: print("No")