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