def fun(n): res = (n + 1) // 2 if n % 2 != 0: res -= res // 2 return res print(fun(int(input())))