# coding: utf-8 # yukicoder My Practice # author: Leonardone @ NEETSDKASU n = int(input()) if n % 2 == 0: n >>= 1 print(n)