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

print((-(-(a+b)//2)))
import sys

INF = 1 << 60

MOD = 10**9 + 7 # 998244353

sys.setrecursionlimit(2147483647)

input = lambda:sys.stdin.readline().rstrip()

def resolve():

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

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

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

import sys

INF = 1 << 60
MOD = 10**9 + 7  # 998244353
sys.setrecursionlimit(2147483647)
input = lambda: sys.stdin.readline().rstrip()


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


resolve()

-a, b = list(map(int, input().split())) -print((-(-(a + b) // 2))) +import sys + +INF = 1 << 60 +MOD = 10**9 + 7  # 998244353 +sys.setrecursionlimit(2147483647) +input = lambda: sys.stdin.readline().rstrip() + + +def resolve(): +    a, b = list(map(int, input().split())) +    print(((a + b + 1) // 2)) + + +resolve()