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