# -*- coding: utf-8 -*-





def func(a, b):

    result = int((a+b)/2 + 0.5)

    return result





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



print((func(a, b)))
import math

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

print((math.ceil((a+b)/2)))
# -*- coding: utf-8 -*-
def func(a, b):
    result = int((a + b) / 2 + 0.5)
    return result


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

import math

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

-# -*- coding: utf-8 -*- -def func(a, b): -    result = int((a + b) / 2 + 0.5) -    return result - +import math -print((func(a, b))) +print((math.ceil((a + b) / 2)))