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