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