import math

import statistics as st



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



print((math.ceil(st.mean((a,b)))))
import math

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

print((math.ceil((a+b)/2)))
import math
import statistics as st

a, b = list(map(int, input().split()))
print((math.ceil(st.mean((a, b)))))

import math

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

-import statistics as st -print((math.ceil(st.mean((a, b))))) +print((math.ceil((a + b) / 2)))