n = int(input()) che = divmod(n, 2) if che[1] == 0: print(che[0]) else: print(che[0] + 1)