n = io.read("*n") print(math.ceil(n / 2))