N=int(input()) if N==2: print(1) print("Yes") elif N%2==0: print(0) print("No") else: print(1) print("No")