if input() in ("0 0", "1 1", "2 2"): print("Yes") else: print("No")