def main(): a, b = map(int, input().split()) if a == b or {a, b} == {2, 4}: print("Yes") else: print("No") if __name__ == "__main__": main()