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