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



Sample input:
1 3


Sample output:
2

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
s = a+b
k = s/2 - s//2

if k > 0.4:
  print(s//2+1)
else:
  print(s//2)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math as m
x=map(int,input().split())
print(m.ceil(sum(x)/2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    a, b = map(int, input().split())
    ans = (a+b+1)//2
    return ans
print(solve())

Submission status: Accepted

Solution code:
import math
a,b=map(int, input().split())
print('{:.0f}'.format(math.ceil((a+b)/2)))

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:

def resolve():
    A, B = list(map(int, input().split(" ")))
    import math
    print(math.ceil((A+B)/2))


if '__main__' == __name__:
    resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math
def main():
    a, b = map(int, input().split())
    print(math.ceil((a+b)/2.0))
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a, b = map(int, input().split())
res = math.ceil((a + b) / 2)
print("{}".format(res))

Submission status: Accepted

Solution code:
import numpy as np


def round_up_mean(posi_int_a, posi_int_b):
    val_mean = np.array([posi_int_a, posi_int_b]).mean()
    val_ceiled = int(np.ceil(val_mean))
    print(val_ceiled)


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

Submission status: Accepted

Solution code:
import sys
import math
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def S(): return sys.stdin.readline()
def LS(): return sys.stdin.readline().split()
def LS2(N): return [sys.stdin.readline().split() for i in range(N)]
def FILL(i,h,w): return [[i for j in range(w)] for k in range(h)]
def sisha(num,digit): return Decimal(str(num)).quantize(Decimal(digit),rounding=ROUND_HALF_UP)
#'0.01'や'1E1'などで指定、整数に戻すならintをかます
MOD = 1000000007
INF = float("inf")
sys.setrecursionlimit(10**5+10)
input = sys.stdin.readline

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input().split()
p = [int(w) for w in s]

a = p[0]
b = p[1]

c = ( a + b ) % 2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

#https://atcoder.jp/contests/abc082/tasks/aabc082_a
a, b =[int(i) for i in input().split()]
print (int((a+b+1)/2.0))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#--Round Up the Mean
import math
a, b = map(int, input().split())
average = math.ceil((a+b)/2.0)

print(average)

Submission status: Accepted

Solution code:
a,b = input().split(" ")
a = int(a)
b = int(b)
i = -(-(a + b)//2)
print(i)

Submission status: Accepted

Solution code:
icase=0    
if icase==0:
    a,b=map(int,input().split())
    print((a+b-1)//2+1)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import math
k, s = map(int, input().split())
x = (k+s)/2
print(math.ceil(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math


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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x = (a+b)/2

if x != int(x):
	print(int(x) + 1)
else:
	print(int(x))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(float,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
 
c = (a+b) / 2
 
print(int(c+0.9))

Submission status: Accepted

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

c = (a+b) / 2

print(int(c+0.9))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split(" "))
N = (a + b) * 5

if N % 10:
  print(int(str(N)[:-1]) + 1)
else:
  print(int(N / 10))

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

url = "https://atcoder.jp/contests/abc082/tasks/abc082_a"

def main():
    n,m = list(map(int, input().split()))
    print(math.ceil((n + m) / 2))
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

x=(a+b)/2

import math

print(math.ceil(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = [int(x) for x in input().split()]

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

Submission status: Accepted

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

x=(a+b)//2+(a+b)%2

print(x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
import math

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

Submission status: Accepted

Solution code:
x,y=list(map(int, input().split()))
print(round((x+y)/2+0.4))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

ans = (a + b) // 2

if (a + b) / 2 - ans > 0:
    ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

def main():
    print((a + b + 1) // 2)

if __name__ ==  '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC 082: A – Round Up the Mean
a, b = [int(s) for s in input().split()]
print((a + b) //  2 if (a + b) % 2 == 0 else (a + b) // 2 + 1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

a,b = iim()
print((a+b+2-1)//2)

Submission status: Accepted

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    sum = a[0]+a[1]
    ans =sum //2
    if sum%2 ==1:
        ans +=1

    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = (int(x) for x in input().split())
c = a + b
d = int((c + 1)/2)
print(d)

Submission status: Accepted

Solution code:
A,B=map(int,input().split());print(-(-(A+B)//2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

li = input().split(" ")

a = (int(li[0]) + int(li[1])) / 2

print(math.ceil(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import numpy as np


def main():
    a, b = map(int, input().split())
    x = np.mean([a, b])
    ans = int(np.ceil(x))
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

Solution code:
import math 

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(x)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_number = input().split(' ')
a = float(input_number[0])
b = float(input_number[1])

ave = (a+b)/2

if ave%1 == 0:
    print(int(ave))
else:
    print(int(ave) +1)

Submission status: Accepted

Solution code:
import math
print(int(math.ceil(sum([int(x) for x in input().split()])/2)))

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
a, b = [int(i) for i in input().split()]
m = (a * 10 + b * 10) // 2
x = (m + 9) // 10
print(x)

Submission status: Accepted

Solution code:
import math
import string


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import os
import math


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B = list(map(int, sys.stdin.readline().split()))
    print(math.ceil((A+B)/2))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#abc082 a 
a,b=map(int,input().split())
ans=(a+b)//2+1
if a%2==b%2:
    ans-=1
print(ans)

Submission status: Accepted

Solution code:
a,b = [int(x) for x in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

import math

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

Submission status: Accepted

Solution code:
# A - Round Up the Mean
a,b=list(map(int,input().split()))
if (a+b)%2==0:
    print((a+b)//2)
else:
    print((a+b)//2+1)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a, b = [int(x) for x in sys.stdin.readline().strip().split(" ")]
if (a + b) % 2 == 1:
    print((a + b + 1) // 2)
else:
    print((a + b) // 2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

a, b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Accepted

Solution code:
n = input()
n = n.split(" ")
n = list(map(int, n))
a = n[0]
b = n[1]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import math
a,b = map(int,input().split())
print(math.ceil((a+b)/2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if c%2==0:
  print(x)
elif c%2==1:
  print(x+1)

Submission status: Accepted

Solution code:
#n = int(input())
a,b = map(int,input().split())
#a_L = list(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
a, b = map(int, input().strip().split())
m = (a + b + 1)//2
print(m)

Submission status: Accepted

Solution code:
import math

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

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

print(output)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#082_A
a,b=map(int,input().split())
print(-(-(a+b)//2))

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

print(x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

# a = int(input())
# b = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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))

Submission status: Accepted

Solution code:
from math import ceil


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import math

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

x = (a + b)/2

xx= math.ceil(x)

print(xx)

Submission status: Accepted

Solution code:
[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))

Submission status: Accepted

Solution code:
import statistics
import math

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

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

Submission status: Accepted

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

Submission status: Accepted

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