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