N = int(input()) is_shortage = bool(N % 2) answer = N // 2 + 1 if is_shortage else N // 2 print(answer)