N = input() if N == "2": print("0\nYes") elif int(N[-1]) % 2 == 0: print("0\nNo") else: print("1\nNo")