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