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