x=input() print(f"0\nYes" if x==2 else f"{int(x[-1])%2}\nNo")