import sys

input = sys.stdin.readline



x,y = list(map(int, input().split()))

print((x+y//2))

x, y = list(map(int, input().split()))

print((x+y//2))
import sys

input = sys.stdin.readline
x, y = list(map(int, input().split()))
print((x + y // 2))

x, y = list(map(int, input().split()))
print((x + y // 2))

-import sys - -input = sys.stdin.readline