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