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