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