a, b = (int(i) for i in input().split())

#print(a,b)



c=-(-(a+b)//2)

print(c)
a, b = (int(i) for i in input().split())

#print(a,b)



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

print(c)
a, b = (int(i) for i in input().split())
# print(a,b)
c = -(-(a + b) // 2)
print(c)

a, b = (int(i) for i in input().split())
# print(a,b)
c = (a + b + (2 - 1)) // 2
print(c)

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