X,Y = list(map(int,input().split()))

print((int(X + Y/2)))
X, Y = list(map(int,input().split()))

ans = X + Y//2

print(ans)
X, Y = list(map(int, input().split()))
print((int(X + Y / 2)))

X, Y = list(map(int, input().split()))
ans = X + Y // 2
print(ans)

-print((int(X + Y / 2))) +ans = X + Y // 2 +print(ans)