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