from sys import stdin def main(): N = int(input()) print((N + 1) // 2) input = lambda: stdin.readline() main()