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