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