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