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