import math

a=int(eval(input()))

print((math.ceil(a/2)))
import math

n=int(eval(input()))

print((math.ceil(n/2)))
import math

a = int(eval(input()))
print((math.ceil(a / 2)))

import math

n = int(eval(input()))
print((math.ceil(n / 2)))

-a = int(eval(input())) -print((math.ceil(a / 2))) +n = int(eval(input())) +print((math.ceil(n / 2)))