# coding:utf-8 N = int(input()) if N%2==1: print(N) else: print(N//2)