N = int(eval(input()))

print(((N + 1) // 2))

#sjdjsdajkjkafffjfjfjfjfjjfjf
n = int(eval(input()))

if n % 2 == 0:

    print((n//2))

else:

    print((n//2 + 1))
N = int(eval(input()))
print(((N + 1) // 2))
# sjdjsdajkjkafffjfjfjfjfjjfjf

n = int(eval(input()))
if n % 2 == 0:
    print((n // 2))
else:
    print((n // 2 + 1))

-N = int(eval(input())) -print(((N + 1) // 2)) -# sjdjsdajkjkafffjfjfjfjfjjfjf +n = int(eval(input())) +if n % 2 == 0: +    print((n // 2)) +else: +    print((n // 2 + 1))