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