You are given two positive integers a and b. Let x be the average of a and b. Print x rounded up to the nearest integer.
a, b = list(map(int, input().split()))

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

print((a + b + 1) // 2)