a, b = list(map(int, input().split()))

x_rounded_up = int((a + b)/2) + ((a + b)%2)



print(x_rounded_up)

[print(math.ceil(eval(input().replace(" ", "+")) / 2)) for math in [__import__("math")]]

a, b = list(map(int, input().split()))
x_rounded_up = int((a + b) / 2) + ((a + b) % 2)
print(x_rounded_up)

[print(math.ceil(eval(input().replace(" ", "+")) / 2)) for math in [__import__("math")]]

-a, b = list(map(int, input().split())) -x_rounded_up = int((a + b) / 2) + ((a + b) % 2) -print(x_rounded_up) +[print(math.ceil(eval(input().replace(" ", "+")) / 2)) for math in [__import__("math")]]