def fun(n): n = int(n) d, m = divmod(n, 2) return d + m print(fun(input()))