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