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