import math

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

print((math.ceil((a+b)/2)))
# -*- coding: utf-8 -*-



import math





def func(a, b):

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

    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 -*-
import math


def func(a, b):
    result = math.ceil((a + b) / 2)
    return result


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

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