# coding: utf-8 # Here your code ! input_line = raw_input() N = int(input_line) if N%2==0: print N/2 else: print N