N = int(input()) S = 0 if N%2 == 0: print(int(N/2+0.5)) else: print(N)