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