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

print((a+b//2))
print((eval(input().replace(" ","+")+"//2")))
a, b = list(map(int, input().split()))
print((a + b // 2))

print((eval(input().replace(" ", "+") + "//2")))

-a, b = list(map(int, input().split())) -print((a + b // 2)) +print((eval(input().replace(" ", "+") + "//2")))