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