def main(): N = int(input()) if N % 2 == 1: print(N) else: print(N//2) if __name__ == '__main__': main()