n = int(input()) if n % 2 == 0: print(n // 2) else: d = (n + 1) // 2 print((d + 1) // 2)