Problem:
 Score : 100 points    Problem Statement You are given two positive integers a and b .
Let x be the average of a and b .
Print x rounded up to the nearest integer.      Constraints  a and b are integers.  1 \leq a, b \leq 100         Input Input is given from Standard Input in the following format:  a  b       Output Print x rounded up to the nearest integer.        Sample Input 1 1 3      Sample Output 1 2  The average of 1 and 3 is 2.0 , and it will be rounded up to the nearest integer, 2 .       Sample Input 2 7 4      Sample Output 2 6  The average of 7 and 4 is 5.5 , and it will be rounded up to the nearest integer, 6 .       Sample Input 3 5 5      Sample Output 3 5

Solution (Python):
from math import ceil
print(ceil(sum(list(map(int, input().split())))/2))

Solution (Python):
import math

x, y = map(int, input().split())
ave = (x + y) / 2
ave = math.ceil(ave)
print(ave)

Solution (Python):
import math
a, b = map(int, input().split(' '))
print(math.ceil((a+b)/2))

Solution (Python):
import math
a,b = map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):

a, b = map(int, input().strip().split())
m = (a + b + 1)//2
print(m)

Solution (Python):
import math

a, b = [int(i) for i in input().split()]

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

print(output)

Solution (Python):
a,b =map(int, input().split())
print(-(-(a+b)//2))

Solution (Python):
a,b=map(int,input().split())
print(int((((a+b)/2)+0.5)))

Solution (Python):

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

Solution (Python):
import math

def plusup(a , b):

    return math.ceil((a + b) / 2)

def main():
    a , b = map(int , input().split())
    print(plusup(a , b))

if __name__ == '__main__':
    main()

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
b, c = map(int, input().split())
print((b+c+2-1)//2)

Solution (Python):
b, c = map(int, input().split())
print(-(-(b+c)//2))

Solution (Python):
a,b = map(int,input().split())
print((a+b-1)//2+1)

Solution (Python):
a, b = map(int, input().split())
print(-(-(a+b)//2))

Solution (Python):
import math

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

Solution (Python):
import math

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

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())
if (a+b)/2 == (a+b)//2:
  print(int((a+b)/2))
else:
  print((a+b)//2 + 1)

Solution (Python):
a, b = map(int, input().split())
if ( a + b ) % 2 == 0:
    print( int (( a + b ) / 2) )
else:
    print( int( ( a + b ) / 2 + 0.5 ) )

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a + b)/2))

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):


a,b = [int(i) for i in input().rstrip().split()]
print( ((a+b) + (2-1)) // 2 )

Solution (Python):
a = eval(input().replace(" ","+"))
print(-((-a)//2))

Solution (Python):
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
mod=10**9+7

a,b=MI()
ans=(a+b+1)//2
print(ans)

Solution (Python):
a,b=map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):
import math
n=list(map(int,input().split()))
print(math.ceil(sum(n)/len(n)))

Solution (Python):
import math

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

print(math.ceil((a+b)/2))

Solution (Python):
A,B = map(int,input().split())

import math
ans = math.ceil((A+B)/2)
print(ans)

Solution (Python):
import math
a,b=input().split()
print(int(math.ceil((int(a)+int(b))/2)))

Solution (Python):
import math

A,B=map(int,input().split())
print(math.ceil((A+B)/2))

Solution (Python):
import math
a,b = map(int,input().split())

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

print(x)

Solution (Python):
a,b = map(int,input().split())
s=(a+b)//2
if (a+b)%2:
  print(s+1)
else:
  print(s)

Solution (Python):
a,b = map(int, input().split())
if (a+b)%2:
  print(int((a+b+1)/2))
else:
  print(int((a+b)/2))

Solution (Python):
a,b = map(int, input().split())
s = (a+b)//2
if (a+b)%2:
  print(s+1)
else:
  print(s)

Solution (Python):
import math

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




m = math.ceil((a + b) / 2)
print(m)

Solution (Python):
from math import ceil
print(ceil(eval(input().replace(' ', '+')) / 2))

Solution (Python):
a, b = map(int, input().split())
ave = (a + b) / 2
if (int(ave) == ave):
	print(int(ave))
else:
	print(int(ave) + 1)

Solution (Python):
a, b = map(int, input().split())

if ((a + b) / 2 - (a + b) // 2 >= 0.5):
	print((a + b) // 2 + 1)
else:
	print((a + b) // 2)

Solution (Python):
import math

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

print(math.ceil((a + b) / 2))

Solution (Python):
import math
a, b = [int(i) for i in input().split()]
print(math.ceil((a+b)/2))

Solution (Python):
a,b = map(int,input().split())
print(-((-(a+b)//2)))

Solution (Python):
a,b = map(int,input().split())
print(-(((-(a+b)//2))))

Solution (Python):
a,b = map(int,input().split())
print(-(int((-(a+b)//2))))

Solution (Python):
import math

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

Solution (Python):
a,b=map(int,input().split())

s = a+b
print(-(-s//2))

Solution (Python):
import math
a,b=map(int,input().split())
ans=math.ceil((a+b)/2)
print(ans)

Solution (Python):
a,b = map(int, input().split())
mean = (a+b) / 2
if mean // 1 == mean:
    print(int(mean))
else:
    print(int(mean//1) + 1)

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

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

Solution (Python):
from math import ceil
a,b = map(int,input().split())
print(ceil((a+b)/2))

Solution (Python):
from math import ceil
print(ceil((sum(map(int,input().split())))/2))

Solution (Python):
a, b = map(int, input().split())
avg = (a + b -1) / 2
avg = int(avg + 1)
print(avg)

Solution (Python):
import math

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

Solution (Python):
a, b = map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):

from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN


nums = list(map(int, input().rstrip().split()))


average = (nums[0] + nums[1]) / 2
print( Decimal(str(average)).quantize(Decimal('0'), rounding=ROUND_HALF_UP))

Solution (Python):
from math import ceil


def main():
    numbers = list(map(int, input().split()))
    print(ceil(sum(numbers) / 2))


if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
sum_ab = a+b
if sum_ab % 2 == 0:
    print(sum_ab//2)
else:
    print(sum_ab//2 + 1)

Solution (Python):
a,b = map(int,input().split())
q = (a+b)//2
r = (a+b)/2-q
if r<0.5:
  print(q)
else:
  print(q+1)

Solution (Python):
import math

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

x = (a + b)/2

xx= math.ceil(x)

print(xx)

Solution (Python):
[a, b] = list(map(int, input().split()))

if (a+b)%2 == 0:
  ave = (a+b)/2
else:
  ave = (a+b+1)/2

print(int(ave))

Solution (Python):
import math

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

Solution (Python):
a, b = map(int, input().split())
if (a + b) % 2 == 0:
  print((a + b) // 2)
else:
  print((a + b) // 2 + 1)

Solution (Python):
import statistics
import math

x = map(int, input().split())

print(math.ceil(statistics.mean(x)))

Solution (Python):
a,b=map(int,input().split())
print((a+b+1)//2)

Solution (Python):
a, b = map(int, input().split())
c = int((a + b) / 2)
print(c) if c == ((a + b) / 2) else print(c + 1)

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a + b) / 2))

Solution (Python):
a,b = map(int, input().split())
if (a+b)%2==0: print((a+b)//2)
else: print((a+b)//2+1)

Solution (Python):
a, b = map(int, input().split())
if (a + b) % 2 == 0:
  print((a+b)//2)
else:
  print((a+b+1)//2)

Solution (Python):
a, b = map(int, input().split())
print((a + b + 1) // 2)

Solution (Python):
a, b = map(int, input().split())
mean = (a + b + 1)//2
print(mean)

Solution (Python):
print(-(-eval((input().replace(" ","+")))//2))

Solution (Python):
import math;print(math.ceil(sum(list(map(int,input().split())))/2))

Solution (Python):
a,b = map(int,input().split())

if (a+b) % 2 == 1:
    print(int((a+b+1)/2))
else:
    print(int((a+b)/2))

Solution (Python):
import math
a, b = map(int, input().split())
c = ((a + b) / 2)
print(math.ceil(c))

Solution (Python):
a,b = map(int,input().split())
if (a+b)%2 == 0:
    print((a+b)//2)
else:
    print((a+b)//2+1)

Solution (Python):
a, b = map(int,input().split(" "))
print("{}".format(int((a+b+2-1)/2)))

Solution (Python):

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


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

Solution (Python):
a, b = list(map(int, input().split()))
x = a + b
print(x // 2 + x % 2)

Solution (Python):
a = list(map(int, input().split()))
print((a[0]+a[1]+2-1)//2)

Solution (Python):
a = list(map(int, input().split()))
sum = a[0] + a[1]
if sum%2 == 0:
  print(int(sum/2))
else:
  print(int((sum + 1)/2))

Solution (Python):
import math
try:
    a, b = map(int, input().split())
    mean = (a+b)/2
    print(math.ceil(mean))
except EOFError:
    pass

Solution (Python):
a, b = map(int, input().split())
x = (a+b)/2

m, n = divmod(x,1)

if n>0:
    ans = m+1
else:
    ans = m
print(int(ans))

Solution (Python):
a,b = map(int,input().split())
print((a+b+1)//2)

Solution (Python):
print((sum(list(map(int,input().split())))+1)//2)

Solution (Python):
a,b=map(int,input().split())

if (a+b)%2==0:
  print((a+b)//2)
else:
  print((a+b)//2+1)

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())
if (a + b) % 2 == 0:
  print((a + b) // 2)
else:
  print((a + b) // 2 + 1)

Solution (Python):
import math

def main(a, b):
    return math.ceil((a + b) / 2)

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

Solution (Python):
a,b=map(int,input().split())
x=(a+b)%2
if x==1 :
    y=(a+b+1)//2
else :
    y=(a+b)//2
print(y)

Solution (Python):
import math

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

print(math.ceil((a + b) / 2))

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
A,B=map(int,input().split())
if (A+B)%2!=0:
  print((A+B)//2+1)
else:
  print((A+B)//2)

Solution (Python):
a, b = map(int,input().split())

hei = (a+b) % 2
ans = (a+b)//2

if hei == 0:
  print(ans)
else:
  print(ans+1)

Solution (Python):
a,b=map(int,input().split())
from math import ceil
print(ceil((a+b)/2))

Solution (Python):
a,b = map(int,input().split())
print((a+b+1)//2)

Solution (Python):
a,b = map(int,input().split())
x = (a+b)//2
if (a+b)%2 == 0:
    print(x)
else:
    print(x+1)

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a + b) / 2))

Solution (Python):
a, b=map(int,input().split())
print((a+b+1)//2)

Solution (Python):
a,b=map(int,input().split())
ans=(a+b+2-1)//2
print(ans)

Solution (Python):
import math
a, b = map(int,input().split())

print(math.ceil((a + b) / 2))

Solution (Python):




def main():
    A, B = map(int, input().split())
    print(int((A + B) / 2 + 0.5))


if __name__ == "__main__":
    main()

Solution (Python):
import math
a,b = map(int, input().split())
x = (a + b) / 2 


print(math.ceil(x))

Solution (Python):
import sys
import math
a,b = map(int, input().split())
x = (a + b) / 2 


print(math.ceil(x))

Solution (Python):
from math import ceil
a, b = map(int, input().split())
print(ceil((a+b)/2))

Solution (Python):
from math import ceil
from statistics import mean

ab = list(map(int, input().split()))
print(ceil(mean(ab)))

Solution (Python):
import math
import statistics

ab = list(map(int, input().split()))
print(math.ceil(statistics.mean(ab)))

Solution (Python):
a, b = map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a,b = map(int, input().split())

x = -(a+b)//2
print(-x)

Solution (Python):
a, b = map(int, input().split())

ave = (a + b + 1)//2

print(str(ave))

Solution (Python):
a, b = map(int, input().split())
dst = (a + b) / 2 + 1 if (a + b) % 2 else (a + b) / 2
print(int(dst))

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a + b) / 2))

Solution (Python):
a,b = map(float,input().split())
if (a+b)%2 == 1:
    print(int((a+b)/2)+1)
else:
    print(int((a+b)/2))

Solution (Python):
import math
a,b=map(int, input().split())  
c = math.ceil((a+b)/2)
print(c)

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

Solution (Python):
import math
a,b = map(int,input().split())
x = (a + b)/2
print(math.ceil(x))

Solution (Python):
import math
a,b=map(int,input().split())

print(int(math.ceil((a+b)/2)))

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

Solution (Python):
"""
author : halo2halo
date : 29, Jan, 2020
"""

import sys
import itertools



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A, B = map(int, readline().split())

print((A+B+1)//2)

Solution (Python):
import math
a = list(map(int, input().split()))
print(math.ceil(sum(a)/2))

Solution (Python):
a,b=map(int,input().split())
x=(a+b)/2

if x*10%10 == 0:
    answer = (a+b)//2
elif 1 <= x*10%10 and x*10%10 < 5:
    answer = (a+b)//2
else:
    answer = (a+b)//2 + 1

print(answer)

Solution (Python):
a, b = map(int, input().split())
print((a+b+1) // 2)

Solution (Python):
a, b = map(int, input().split())
print(int((a+b+1)/2))

Solution (Python):
a, b = map(int,input().split())

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

Solution (Python):
a, b = list(map(int, input().split()))
m = int((a + b) / 2)
print(m) if (a + b) % 2 == 0 else print(m + 1)

Solution (Python):
a,b=map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):
arr = input().split()
arr = list(map(int,arr))
a = arr[0]
b = arr[1]

r = ((a+b)/2) - ((a+b)//2)
if r == 0:
    print((a+b)//2)
else:
    print((a+b)//2 + 1)

Solution (Python):
a,b=map(int,input().split())
ave=(a+b)/2
print(int(ave) if ave==int(ave) else int(ave)+1)

Solution (Python):
a,b =map(int, input().split())
print(-(-(b+a)//2))

Solution (Python):
import math

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


print(math.ceil((a+b)/2))

Solution (Python):
import math
a,b = map(int, input().split())
ans = math.ceil((a+b)/2)
print(ans)

Solution (Python):
a, b = map(int, input().split())
if (a+b) % 2 == 0:
	print(int((a + b) / 2))
else:
	print(int(((a + b) / 2 )+ 1))

Solution (Python):
import math

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

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

print(ans)

Solution (Python):
a, b = map(int, input().split())
print((a+b+1)//2)

Solution (Python):
a, b = map(int,input().split())
print((a + b + 1) // 2)

Solution (Python):
from math import ceil
a, b = map(int,input().split())
print(ceil((a + b) / 2))

Solution (Python):
a, b = map(int, input().split())
x = int((a+b-1)/2)
print(x+1)

Solution (Python):
import math
a,b = map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())

if (a+b)%2 == 1:
  print((a+b)//2+1)
else:
  print((a+b)//2)

Solution (Python):
a, b = map(int, input().split())
print(-(-(a+b)//2))

Solution (Python):


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

ans = (a + b + 2 - 1) // 2

print(ans)

Solution (Python):
import math
a, b = map(int, input().split())
c = ((a + b) / 2)
print(math.ceil(c))

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math
i = list(map(int,input().split()))

x = (i[0] + i[1]) / 2.0

print(math.ceil(x))

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a+b) / 2))

Solution (Python):
from math import ceil

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

Solution (Python):
a,b=map(int,input().split())
x=a+b
print(x//2+x%2)

Solution (Python):
a, b = map(int, input().split())
print((a + b + 1) // 2)

Solution (Python):
a, b = map(int, input().split())
print(-(-(a+b)//2))

Solution (Python):
a,b = map(int,input().split())

c = (a+b)/2

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

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

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

Solution (Python):
import math
a = list(map(int,input().split()))
print(math.ceil(sum(a)/2))

Solution (Python):
a,b = map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):


import numpy as np

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

Solution (Python):
import math

def main():
    a,b = map(int, input().split())

    avg = (a + b) / 2

    print(math.ceil(avg))

if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):
import math

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

ave = (a + b) / 2

print(math.ceil(ave))

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a + b) / 2))

Solution (Python):
import math

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

ave = (a + b) / 2

print( math.ceil(ave))

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = (int(x) for x in input().split())
 
x = (a+b)/2
 
if (a+b) % 2 == 0:
  print(int(x))
else:
  print(int(1+(a+b)//2))

Solution (Python):
import math

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

Solution (Python):
a, b = map(int,input().split())
x = (a + b) /2
if x % 1 != 0:
  x = int(x) +1
else:
  x = int(x)
print(x)

Solution (Python):
import math
a, b = map(int,input().split())

x = (a+b)/2

print(math.ceil(x))

Solution (Python):
a, b = map(int, input().split())
print(-((-(a+b)) // 2))

Solution (Python):
import math
num = input().split()
num_i = [int(s) for s in num]

x = (num_i[0]+num_i[1])/2
print(math.ceil(x))

Solution (Python):
import math
a,b = map(int, input().split())
print(math.ceil((a+b) / 2))

Solution (Python):
a, b = map(int, input().split(" "))
x = (a+b-1)//2 + 1
print(x)

Solution (Python):
print(-(-sum(map(int,input().split()))//2))

Solution (Python):
print(-~sum(map(int,input().split()))//2)

Solution (Python):
a, b = map(int, input().split())


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

Solution (Python):
a, b = map(int, input().split())


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

Solution (Python):
import math

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

x = (a + b) / 2
print(math.ceil(x))

Solution (Python):
import math

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

print(math.ceil( (a + b) / 2))

Solution (Python):
a, b = (int(i) for i in input().split())

if (a+b) % 2 == 0:
  print((a+b)//2)
else:
  print((a+b)//2+1)

Solution (Python):
import sys
input = sys.stdin.readline
a, b = map(int,input().split())
ab = a+b
if ab%2 == 0:
    print(ab//2)
else:
    print(ab//2+1)

Solution (Python):
import math
a,b = map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math
a,b=map(int,input().split())
x=math.ceil((a+b)/2)
print(x)

Solution (Python):
import math
a,b = map(int,input().split())

print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())
x = int((a+b+2-1)/2)
print(x)

Solution (Python):
import math
a,b = map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):


import math

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

print(math.ceil((a+b)/2))

Solution (Python):


import sys
import math
input = sys.stdin.readline


def round(x): return (x*2+1)//2

"""
H = int(input())
h = [int(ele) for ele in input().split()]
h = [0] + h
"""


def main():
    a, b = map(int, input().split())
    avg = (a + b)/2
    print(int(round(avg)))


if __name__ == "__main__":
    main()

Solution (Python):

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

Solution (Python):
a, b = map(int, input().split(" "))

if (a + b) % 2 == 1:
  print((a + b) // 2  + 1)
else:
  print((a + b) // 2)

Solution (Python):
import math
a,b = map(int, input().split())
print(int(math.ceil((a+b)/2)))

Solution (Python):
a,b=map(int,input().split())
print((a+b+1)//2)

Solution (Python):
import sys
input = sys.stdin.readline
a,b=map(int,input().split())
print(-(-(a+b)//2))

Solution (Python):
import math

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

print(math.ceil((a+b)/2))

Solution (Python):
import math
a, b = map(int, input().split())

print(math.ceil((a + b)/2))

Solution (Python):
a, b = map(int, input().split())
print((a + b) // 2) if(a + b) % 2 == 0 else print((a + b) // 2 + 1)

Solution (Python):

from statistics import mean
from math import ceil

data = list(map(int, list(input().split())))
print(ceil(mean(data)))

Solution (Python):
print((1+sum(list(map(int, input().split()))))//2)

Solution (Python):
a,b =map(int,input().split());print((a+b+1)//2)

Solution (Python):
a,b=map(int,input().split())
print((a+b+1)//2)

Solution (Python):
a,b=map(int,input().split())
print(((a+b)+2-1)//2)

Solution (Python):
import math
a, b = map(int, input().split())
ans = math.ceil((a+b)/2)
print(ans)

Solution (Python):
a, b = map(int, input().split())
x=a+b
print(-(-x//2))

Solution (Python):
a, b = map(int, input().split())
print(-(-(a+b)//2))

Solution (Python):
a,b=map(int, input().split())

n=a+b

print(-(-n//2))

Solution (Python):


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

Solution (Python):
import sys
input = sys.stdin.readline
a, b = [int(x) for x in input().split()]
m = (a + b) // 2
if (a + b) % 2 == 0:
    print(m)
else:
    print(m + 1)

Solution (Python):
import math
a, b = map(lambda x: int(x), input().split())

print(math.ceil((a + b)/2))

Solution (Python):
a, b = map(int, input().split())

if (a+b)%2==1:
    print((a+b)//2+1)
else:
    print((a+b)//2)

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a,b=map(int,input().split())
if (a+b)%2==0:
  print((a+b)//2)
else:
  print((a+b)//2+1)

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a,b = map(int,input().split())

ans = (a+b)//2 
if (a+b)%2 != 0: ans += 1
print(ans)

Solution (Python):
a, b = map(int, input().split())
ans = (a+b)//2 + bool((a+b)%2)
print(ans)

Solution (Python):
import math
a,b=map(int,input().split())
ans=math.ceil((a+b)/2)
print(ans)

Solution (Python):
import math
a,b=map(int,input().split())
ans=math.ceil((a+b)/2)
print(int(ans))

Solution (Python):
a, b = map(int, input().split())

if ((a + b) % 2 == 0):
   print(int((a + b)/2))
else:
   print(int((a + b)/2) + 1)

Solution (Python):
from sys import stdin
from math import ceil


if __name__ == "__main__":
    a, b = [int(item) for item in stdin.readline().split()]
    
    print(ceil((a + b)/2))

Solution (Python):
a,b=map(int,input().split())
m=(a+b)/2-0.0000001
print(int(m+1))

Solution (Python):
a,b = map(float,input().split())
x = (a+b) / 2
y = (a+b) % 2
if y > 0:
  x += 0.5
print(int(x))

Solution (Python):
import math
a , b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
def main():
    a, b = map(int, input().split())
    if (a+b)//2 < (a+b)/2:
        print((a+b)//2+1)
    else:
        print((a+b)//2)

if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())
print(-~(a+b)//2)

Solution (Python):
import math
a,b=map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math

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

print(math.ceil((a + b) / 2))

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    return ((a + b) + 2 - 1) // 2

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a,b=map(int,input().split())
if (a%2==0 and b%2==0) or (a%2==1 and b%2==1):
  print((a+b)//2)
else:
  print((a+b+1)//2)

Solution (Python):
import math;
a, b = [ int(i) for i in input().split() ];
print(math.ceil((a+b)/2))

Solution (Python):
import math;
a, b = [ int(i) for i in input().split() ];
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
import math
a,b=map(int, input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())
print(-((-a-b)//2))

Solution (Python):
a = input().split()
s = int(a[0]) + int(a[1])
if s % 2 == 0:
    print(s // 2)
else:
    print(s // 2 + 1)

Solution (Python):
a, b = map(int, input().split())
x = (a+b)/2
if (a+b) %2 ==0:
  print(int(x))
else:
  print(int((a+b+1)/2))

Solution (Python):
a,b = map(int, input().split())
ans = -((-a + -b) // 2 )
print(ans)

Solution (Python):
num = [int(i) for i in input().split()]
print(-(-(num[0]+num[1])//2))

Solution (Python):
a, b = map(int, input().split())
m = (a + b) // 2
x = (a + b) / 2
if x % 1 == 0:
    print(m)
else:
    print(m+1)

Solution (Python):
a, b = [int(x) for x in input().split()]
x = (a+b)/2
if x%1==0:
    print(int(x))
else:
    print(int(x//1+1))

Solution (Python):
a, b = map(int, input().split())
print((a+b)//2 if (a+b)%2 == 0 else (a+b)//2 + 1)

Solution (Python):
import math

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

Solution (Python):
A,B = list(map(int,input().split()))
print((A+B+1)//2)

Solution (Python):
import math
import sys

a, b = map(int, sys.stdin.readline().split())

print(math.ceil((a+b)/2))

Solution (Python):
from math import ceil
a, b = list(map(int, input().split()))
print(int(ceil((a + b) / 2)))

Solution (Python):
num = [int(i) for i in input().split()]
print(-(-(num[0]+num[1])//2))

Solution (Python):
import math
a, b = map( int, input().split() )
print( math.ceil( ( a + b ) / 2 ) )

Solution (Python):
a, b = map( int, input().split() )
mod = ( a + b ) % 2
if mod == 0 : 
   x = ( a + b ) // 2
else: 
   x = ( a + b ) // 2 + 1 
print( x )

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())
if (a+b)%2 == 0:
    print((a+b)//2)
else:
    print((a+b)//2 +1)

Solution (Python):
import math
a,b=map(int,input().split())
c=(a+b)/2
print(math.ceil(c))

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

a, b = MAP()
print(ceil((a+b)/2))

Solution (Python):
import math
a, b = map(int, input().split())
print(math.ceil((a + b) / 2))

Solution (Python):


from math import ceil


def ceil2number(a, b):
    result = 0
    c = (a + b) / 2
    result = ceil(c)
    return result


if __name__ == "__main__":
    answer = 0
    a, b = map(int, input().split(' '))
    answer = ceil2number(a, b)
    print(answer)

Solution (Python):
import math

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

x = (a+b)/2

print(math.ceil(x))

Solution (Python):
a, b = map(int, input().split())
print(-(-(a + b) // 2))

Solution (Python):




def solver(a, b):
    answer = 0
    answer = (a + b + 1) // 2
    return answer


if __name__ == "__main__":
    a, b = map(int, input().split(' '))
    answer = 0
    answer = solver(a, b)
    print(answer)

Solution (Python):
a, b = map(int, input().split())
x = (a + b) // 2
if (a + b) % 2 == 0:
    print(x)
else:
    print(x + 1)

Solution (Python):
a, b = map(int, input().split())
ans =-(- (a + b) // 2)
print(ans)

Solution (Python):

def round_up_mean(a,b):


  ans = -(-(a+b)//2)
  print(ans)

a, b = map(int, input().split(" "))
round_up_mean(a, b)

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

av = int((a+b)%2)

if av == 0:
	print(int((a+b)/2))
else:
	print(int((a+b)/2)+1)

Solution (Python):
print(-(-eval(input().replace(" ","+"))//2))

Solution (Python):

import sys, math, itertools, heapq, collections, bisect, string
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**7)
inf = float('inf')
mod = 10**9+7
ans = inf ;count = 0 ;pro = 1

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

Solution (Python):
a,b = map(int,input().split())
sum = a + b
aver = -(-sum // 2)
print(aver)

Solution (Python):
import math
a,b=map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
a, b = map(int, input().split())

if ((a+b)%2 == 1):
    print(int((a+b+1)/2))
else:
    print(int((a+b)/2))

Solution (Python):
a, b = map(int,input().split())
print(-(-(b+a)//2))

Solution (Python):
a,b=map(int,input().split())
print((a+b+1)//2)

Solution (Python):
import math

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

Solution (Python):
a, b = map(int, input().split())
x = -(-((a+b)/2)//1)
print(int(x))

Solution (Python):
a,b= map(int,input().split())
print(-((-(a+b))//2))

Solution (Python):
import math
a,b =map(int,input().split())

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

print(int(x))

Solution (Python):
import math

a, b = [int(num) for num in input().split()]

heikin = (a + b) / 2
print(math.ceil(heikin))

Solution (Python):
a,b = map(int, input().split())
x = (a+b)/2
if x>(a+b)//2:
    x = int(x) + 1
else:
    x = int(x)
print(x)

Solution (Python):
import math
a,b = map(int, input().split())
print(int(math.ceil((a+b)/2)))

Solution (Python):
import math

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

print(math.ceil((a + b) / 2))

Solution (Python):
import math

s = list(map(int, input().split()))

t = (s[0] + s[1]) / 2
print(math.ceil(t))

Solution (Python):




def orginalCeil(a, b):
    c = (a + b + 1) // 2
    return c


if __name__ == "__main__":
    a, b = map(int, input().split(' '))
    answer = orginalCeil(a, b)
    print(answer)
exit

Solution (Python):
a,b=map(int,input().split())
print((a+b+1)//2)

Solution (Python):
import math
a,b=map(int,input().split())
x=(a+b)/2
xx=math.ceil(x)
print(xx)

Solution (Python):
[print(math.ceil(eval(input().replace(" ", "+")) / 2)) for math in [__import__("math")]]

Solution (Python):
a,b=map(int,input().split())
print((a+b)//2+(a+b)%2)

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

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

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
import math
a,b = map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math

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

mean = (a + b) / 2
print(math.ceil(mean))

Solution (Python):



import math
a,b =map(int,input().split())

print(math.ceil((a+b)/2))

Solution (Python):
a,b=map(int,input().split())
print(- int((-b-a)//2) )

Solution (Python):
a, b = map(int, input().split())
print((a + b + 1) // 2)

Solution (Python):
from math import ceil
a,b=map(int,input().split())
print(ceil(sum([a,b])/2))

Solution (Python):
a,b = map(int,input().split())
if (a+b)%2 == 0:
    print((a+b)//2)
else:
    print((a+b)//2+1)

Solution (Python):
import math
a,b = map(int,input().split())
print(math.ceil((a+b)/2))

Solution (Python):
import math
array = input().split()
print(math.ceil((int(array[0]) + int(array[1]))/2))

Solution (Python):
import math
n,m=map(int,input().split())
print(math.ceil((n+m)/2))

Solution (Python):
a,b = map(int,input().split())

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