n=int(input()) print(1 if n % 2 == 1 else n // 2)