N=input() if N=="2": print(0) print("Yes") exit(); c=N[-1] if int(c)%2==0: print(0) print("No") else: print(1) print("No")