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