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