N=int(input()) if N%2: A=N else: A=N//2 print(A)