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

c = int((a+b+1)/2)

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

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

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

-c = int((a + b + 1) / 2) -print(c) +print(((a + b + 1) // 2))