a,b = map(int,input().split()) if max(a,b) == 4 and min(a,b) == 2: print("Yes") elif a==b: print("Yes") else: print("No")