def main(): A, B = map(int, input().split()) if A < B: A, B = B, A if A == B: print("Yes") return if A == 4 and B == 2: print("Yes") return print("No") if __name__ == "__main__": main()