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