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