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