A,B = map(int,input().split()) if A == B or (A,B) in ((2,4),(4,2)): print("Yes") else: print("No")