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