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



ans = int((a+b)/2)



if (a+b) % 2 != 0:

    ans += 1



print(ans)
import math



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



ans = math.ceil((a+b)/2)



print(ans)
a, b = list(map(int, input().split()))
ans = int((a + b) / 2)
if (a + b) % 2 != 0:
    ans += 1
print(ans)

import math

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

+import math + -ans = int((a + b) / 2) -if (a + b) % 2 != 0: -    ans += 1 +ans = math.ceil((a + b) / 2)