n=input() if n in"012":exit(print("1\nYes")) print(f"{int(n[-1])&1}\nNo")