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: Runtime Error

Solution code:
s=list(input())
t=list(input())
s.sort()
t.sort(reverse=True)
if s<t:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(round(mean([int(i) for i in input().split()] )))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def ceil(n): # ceiling関数
    if n > int(n):
        return(int(n)+1)
    else:
        return(int(n))
a,b = map(int,input().split())
print(ceil(a+B/2))

Submission status: Runtime Error

Solution code:
def ceil(n): # ceiling関数
    if n > int(n):
        return(int(n)+1)
    else:
a,b = map(int,input().split())
print(ceil(a+B/2))

Submission status: Runtime Error

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

error = ['?','=','!']
if op == '+' :
  print(a+b)
elif op == '-':
  print(a-b)
elif op == '*':
  print(a*b)
elif op == '/':
  if b == 0 :
    print('error')
  else:
    print(int(a/b))
elif op in error:
  print('error')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
*s,=map(int,open(0));print(-~sum(s)//2)

Submission status: Runtime Error

Solution code:
import math

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

print(math.ceil(mean([a,b])))

Submission status: Runtime Error

Solution code:
import math

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

print(math.floor(mean((a,b))))

Submission status: Runtime Error

Solution code:
import math

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

print(math.floor(mean(a,b)))

Submission status: Runtime Error

Solution code:
# coding:UTF-8
import math
work = input().split(" ")
a = int(work[0])
b = int(wokr[1])
print(math.ceil((a+b)/2))

Submission status: Runtime Error

Solution code:
s = list(input())
t = list(input())
s.sort()
t.sort(reverse=True)
for i in range(100):
    if bool(s[i:i+1]) == False:
        if t[i:i+1]:
            print("Yes")
            break
        else:
            print("No")
            break
    elif bool(t[i:i+1]) == False:
        print("No")
        break
    elif (s[i] < t[i]):
        print("Yes")
        break
    elif (s[i] > t[i]):
        print("No")
        break

Submission status: Runtime Error

Solution code:
s = list(input())
t = list(input())
s.sort()
t.sort(reverse=True)
for i in range(100):
    if bool(s[i:2]) == False:
        if t[i:2]:
            print("Yes")
            break
        else:
            print("No")
            break
    elif bool(t[i:2]) == False:
        print("No")
        break
    elif (s[i] < t[i]):
        print("Yes")
        break
    elif (s[i] > t[i]):
        print("No")
        break

Submission status: Runtime Error

Solution code:
s=input()
x,y=list(map(int,input().split()))
dx=[]
dy=[]
first=True
move=0
xf=0
dir=0

for i in s:
    if(i=="F"):
        move+=1
    else:
        if(first):
            xf = move
            first=False
        else:
            if(dir%2==0):
                dx.append(move)
            else:
                dy.append(move)
        dir+=1
        move=0
if(dir%2==0):
    dx.append(move)
else:
    dy.append(move)
cx=0
cy=0
x-=xf
for i in sorted(dx,reverse=True):
    if x>cx:
        cx+=i
    else:
        cx-=i

for i in sorted(dy,reverse=True):
    if y>cy:
        cy+=i
    else:
        cy-=i
#print(sorted(dx,reverse=True),sorted(dy,reverse=True))
if(cx==x and cy==y):
    print("Yes")
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map (int,input().sp;it())
print((a + b)//2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = list(map(int,input().splitlines()))

print(-(-(k[0]+k[1])//2)

Submission status: Runtime Error

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

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

set_a = set(a)
a.sort()
k = 0
p = 0
ans = 0
for a_ in set_a:
    s = a[k]
    while True:
        if k<len(a) and a[k]==s:
            k+=1
            p+=1
        else:
            if p>=s:
                ans+=p-s
            else:
                ans+=p
            p=0
            break
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,_,b=input();s=int(a)+int(b);print(s//2+int(bin(s)[-1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 25 00:39:05 2019

@author: yuta
"""

def dic(n,m):
    x = ''.join(sorted(n))
    y = ''.join(sorted(m,reverse = True))
    if x < y:
        print("Yes")
    else:
        print("No")
dic(input(),input())

Submission status: Runtime Error

Solution code:
input();a=list(map(int,input().split()))
print(sum([a.count(i) if (i-a.count(i))>(a.count(i)-i) else abs(i-a.count(i)) for i in set(a)]))

Submission status: Runtime Error

Solution code:
s=sorted;print("NYoe s"[s(input())<s(input())[::-1]::2])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(-(-(a+b)//2))

Submission status: Runtime Error

Solution code:
a.b=map(int,input().split())
X=str((a+b)*5)
x=int(X[-1])
if x>=5:
    print((a+b)//2+1)
else:
    print((a+b)//2)

Submission status: Runtime Error

Solution code:
print("Yes" if [c for c in input()].sort()<[c for c in input()].sort(reversed=1) else "No"

Submission status: Runtime Error

Solution code:
a,b = input(),input()
print("No" if a>=b else "Yes")

Submission status: Runtime Error

Solution code:
mport numpy as np

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

mean    = np.mean(l)
integer = int(mean) # 切り捨て                                                                                     
decimal = mean - integer

j = decimal * 10

if j >= 5 :
    res = integer + 1
else :
    res = integer

print(res)

Submission status: Runtime Error

Solution code:
import math
import sys


def dudge_answer(a, b):
    ave = (a+b)/2
    return math.ceil(ave)


print(dudge_answer(a, b))

Submission status: Runtime Error

Solution code:
import math
import sys


def dudge_answer(a, b):
    ave = (a+b)/2
    return math.ceil(ave)


print(dudge_answer(float(sys.argv[1]), float(sys.argv[2])))

Submission status: Runtime Error

Solution code:
import math
import sys


def dudge_answer(a, b):
    ave = (a+b)/2
    return math.ceil(ave)


print(dudge_answer(sys.argv[1], sys.argv[2]))

Submission status: Runtime Error

Solution code:
import numpy as np

a,b = map(int,input().split())
print(round(np.mean(a,b)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

def main():
    s = input()
    t = input()

    s_bytes = sorted(s.encode())
    t_bytes = sorted(t.encode(), reverse = True)

    s_len = len(s)
    t_len = len(t)

    gt = s_len < t_len

    for i in range(len(s_bytes)):
        if t_len <= i:
            gt = False
            break
        if s_bytes[i] < t_bytes[i]:
            gt = True
            break
        elif s_bytes[i] > t_bytes[i]:
            gt = False
            break

    print('Yes' if gt else 'No')


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
# coding: utf-8
s = raw_input().split()[0]
t = raw_input().split()[0]

s1 = list(s)
t1 = list(t)

s1.sort
t1.sort(reverse=True)

if s1<t1:
  print 'Yes'
else:
  print 'No'

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
count = {}
ans = 0
for i in a:
    count[i] += 1
for i,c in count.items():
    if i > c:
        ans += c
    elif i < c:
        ans += c - i
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()] 
count = {}
ans = 0
for i in a:
    if i not in count:
        count[i] = 1
    else:
        count[i] += 1
for i,c in count.items():
    if i > c:
        ans += c
    elif i < c:
        ans += c - i
print(ans)

Submission status: Runtime Error

Solution code:
s = input().rstrip()
t = input().rstrip()
s = sorted(s)
t = sorted(t, reverse=True)
if s < t:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
print(int((a+b+1)/2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
 
a = float(input())
b = float(input())

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
mean = (a + b) / 2
print(math.ceil(mean))

Submission status: Runtime Error

Solution code:
a = input()
b = input()

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

Submission status: Runtime Error

Solution code:

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

Submission status: Runtime Error

Solution code:
    # -*- coding: utf-8 -*-
      
      
    b, c = map(int, input().split())
     
    s=0.5*(b+c)
     
    d = int(s)
    
    if s-d > 0:
      v=int(d+1)
    else :
      v=int(d)
    print(v)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
    # -*- coding: utf-8 -*-
      
      
  ptint("aaa")

Submission status: Runtime Error

Solution code:
    # -*- coding: utf-8 -*-
      
      
    b, c = map(int, input().split())
     
    s=0.5*(b+c)
     
    d = int(s)
    
    if s-d != 0:
        v=d+1
    else :
        v=d
        
    print(v)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
      
      
b, c = map(int, input().split())
   
s=0.5*(b+c)
     
d =int(s)
     
if (s-d != 0):
v=d+1
     
print(v)

Submission status: Runtime Error

Solution code:
    # -*- coding: utf-8 -*-
      
      
    b, c = map(int, input().split())
     
    double s =0.5*(b+c)
     
    d =int(s)
     
    v=d+1
     
    print(v)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
  
  
b, c = map(int, input().split())

s=0.5*(b+c)

int d = s

v=d+1

print(v)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
  
  
b, c = map(int, input().split())

s=0.5*(b+c)

int d = s

v=d

print(v)

Submission status: Runtime Error

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


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

s=0.5*(a+b)

int v= int(s)+1

print(v)

Submission status: Runtime Error

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


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


s=0.5*(a+b)

int v= int(s)+1

print(v)

Submission status: Runtime Error

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


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


s=0.5*(a+b)

int v= int(s)+1

print(v)

Submission status: Runtime Error

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

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

s=(a+b)*0.5

v=int(s)+1

print(v)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = list(map(int, input().split()))
print(math.ceil((n[0] + n[1])/2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = sorted(list(input()))
t = sorted(list(input()),reverse=True)
if s < t:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
s = sorted(list(input()))
t = sorted(list(input()),reverse=True)
if str(s) < str(t):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
print((a + b + 1) // 2)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

return int((a+b)/2)

Submission status: Runtime Error

Solution code:
if (a+b)%2 >> 0;
	print((a+b)//2+1)
else:
	print((a+b)//2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import random
s=list(input())
t=list(input())
random.shuffle(s)
random.shuffle(t)
S=''.join(s)
T=''.join(t)
L=[S,T]
L.sort()
if T==S:
  print('No')
elif L[0]==S:
  print('Yes')
elif L[0]==T:
  print('No')

Submission status: Runtime Error

Solution code:
s = input()
t = input()

s_dash = ''.join(sorted(s))
t_dash = ''.join(sorted(t)[::-1])

test = [s_dash, t_dash]

if s_dash == t_dash:
    print("No")
else:
    if sorted(test)[0] != s_dash:
        print("No")
    else:
        print("Yes")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=sorted;print(['No','Yes'][s(input())<s(input())[::-1]])

Submission status: Runtime Error

Solution code:
s=sorted;print(['No','Yes'][s(input())<s(input(),reverse=1)])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S=input()
S.count(1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#82b
s=sorted(list(input()))
t=sorted(list(input()))

ss=''.join(s)
tt=''.join(t)

ans=sorted([tt,ss])

if ss==tt:
    print('No')
else:
    print(['No','Yes'][ans[0]==ss])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ab=map(int,input()[::1]);print(~-sum(ab)//2+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
 
a = list(map(int,input().split()))
 
c = reduce((lambda x,y: (x+y)/2 ,a)
 
print(math.ceil(c))

Submission status: Runtime Error

Solution code:
import math
 
a = list(map(int,input().split()))
 
c = reduce((lambda x,y: (x+y)/2 ,a)
 
print(math.cell(c))

Submission status: Runtime Error

Solution code:
import math

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

c = (a + b)/2 

print(math.cell(c))

Submission status: Runtime Error

Solution code:
import math

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

c = a * b / 2
print(math.cell(c))

Submission status: Runtime Error

Solution code:
N = int(input())
a = list(map(int, input().split()))
res = 0
a.sort()

for i in range(N-1):
    if a[i] != a[i+1]:
        count = i + 1 - count 
        if count < a[i]:
            res += count
        else:
            res += count - a[i]
        
        
print(res)

Submission status: Runtime Error

Solution code:
N = int(input())
a = list(map(int, input().split()))
res = 0
a.sort()
count = 1
for i in range(N-1):
    if a[i] != a[i+1]:
        count = i - count 
        if count < a[i]:
            res += count
        else:
            res += count - a[i]
        
        
print(res)

Submission status: Runtime Error

Solution code:
N = int(input())
a = list(map(int, input().split()))
res = 0
a.sort()

for i in range(N):
    X = a.count(i+1)
    if a[i] > N:
        res += N - i
        break
        
    elif X < i+1:
        res += X
        i = i  + X
        
    else:
        res += X - (i+1)
        i = i  + X
        
print(res)

Submission status: Runtime Error

Solution code:
print((int(input())+int(input()))//2)

Submission status: Runtime Error

Solution code:
i=lambda:int(input())
print((i()+i()+1)//2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
digits = input('')
digits = digits.split(' ')
average = math.round(int(digits[0]) + int(digits[1]) / 2)
print(average)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=list(str(input()))
t=list(str(input()))
alphabet=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
for i in range (len(s)):
    for j in range (len(alphabet)):
        if s[i]==alphabet[j]:
            s[i]=j
for k in range (len(t)):
    for l in range (len(alphabet)):
        if t[k]==alphabet[l]:
            t[k]=l
if len(s)>len(t):
    lst=[-1]*(len(s)-len(t))
    t=t+lst

if len(t)>len(s):
    lst=[-1]*(len(t)-len(s))
    s=s+lst
import sys
for i in range (len(s)):
    if min(s)<max(t):
        print ('Yes')
        sys.exit()
    elif min(s)>max(t):
        print ('No')
        sys.exit()
    else:
        if min(s)==max(t):
            s.remove(min(s))
            t.remove(max(t))
print ('No')

Submission status: Runtime Error

Solution code:
l = list(map(int,input().split()))
 
s = l[0] + l[1]
if s % 2 = 1:
    s = s+ 1
else:
    None
print(s // 2)

Submission status: Runtime Error

Solution code:
l = list(map(int,input().split()))
 
s = l[0] + l[1]
if s % 2 = 1:
  s = s+ 1
else:
  None
  
print(s // 2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

print(m.round(a + b))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print((int(input())+int(input())+1)//2)

Submission status: Runtime Error

Solution code:
print(int((int(input())+int(input())+1)/2))

Submission status: Runtime Error

Solution code:
print(int((int(input())+int(input()))/2))

Submission status: Runtime Error

Solution code:
print(int((int(input())+int(input())/2))

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input())
if n % 500 <= a:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=eval(input().replace(' ', '+');print(a//2+a%2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=input().split()
print(a/b+a%b)

Submission status: Runtime Error

Solution code:
a,b=input().split();print(a/b+a%b)

Submission status: Runtime Error

Solution code:
    a,b=input().split();printa/b+a%b)

Submission status: Runtime Error

Solution code:
a,b=input().split();print(eval(a/b+a%b))

Submission status: Runtime Error

Solution code:
a,b=input().split();print(eval(a/b+a%b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(input())
t = list(input())
s.sort()
t.sort(reverse=True)
if s < t:
    print("yes")
else:
    print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
t=input()
s1="".join(sorted(s));
t1="".join(sorted(t, reverse=true))
if s1<t1:
	print("Yes\n")
else:
	print("No\n")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from collections import Counter

N = int(input())
counter = Counter(map(int, input().split()))

sum = 0

for a, cnt in counter.items():
    if a > cnt:
        sum += cnt
    else:
        sum += cnt - a

print(sum)

Submission status: Runtime Error

Solution code:
n,m=map(int,str(raw_input().split()))
print (n+m)/2

Submission status: Runtime Error

Solution code:
s = str(input())
x,y = map(int, input().split())
y = abs(y)
a = 0
b = 0
adjust = 0
forward = 1
flag = "Yes"
for i in range(0,int(len(s))):
    if s[i] == "F":
        if forward == 1:
            a += 1
        else:
            b += 1
    else:
        forward *= -1
if(s[0] == "F"):
    adjust = 2
if (x >= 0 and a < x) or (x < 0 and a-adjust < -x):
    flag = "No"
x = abs(x)
if (a%2 != x%2 or b < y or b%2 != y%2):
    flag = "No"
print(flag)

Submission status: Runtime Error

Solution code:
import math
N,H = map(int,input().split())

aList = []
bList = []
for count in range(0,N):
    a,b = map(int, input().split())
    aList.append(a)
    bList.append(b)

bList.sort()
bList.reverse()

maxA = max(aList)

count = 0
damage = 0
for b in bList:
    if maxA < b:
        damage+=b
        count+=1
    if damage > H:
        break

if damage < H:
    remainingHP = H - damage
    count = count + math.ceil(remainingHP / maxA)

print(count)

Submission status: Runtime Error

Solution code:
# B - Two Anagrams
# coding: utf-8

A = list(raw_input())
B = list(raw_input())
A.sort()
B.sort(), B.reverse()

print "Yes" if A < B else "No"

Submission status: Runtime Error

Solution code:
import math 
print(math.ceil(int((int(input())+int(input()))/2))

Submission status: Runtime Error

Solution code:
def main():
  s=input()
  t=input()

  sd=list(s)
  sd.sort()
  td=list(t)
  td.sort(reverse=True)

  for (sc,tc) in zip(sd,td):
    if sc<tc:
      print("Yes")
      return
  if len(sd)<len(td) and sd[len(sd)-1]==td[len(sd)-1]:
    print("Yes")
    return
  print("No")

main()

Submission status: Runtime Error

Solution code:
s = input()
x,y=map(int,input().split())
fst = True;xory=1;xc=0;yc=0;xlis=[];ylis=[0];
for c in s:
    if c == "F":
        if xory == 1:
            xc +=1
        else:
            yc +=1
    else:
        if fst and xory ==1:
            xlis.append(xc)
            fst = False
            xory -=1
            xc = 0
        elif xory == 1:
            kari = xlis
            xlis =[i+xc for i in kari]
            xlis.extend([i-xc for i in kari])
            xc = 0
            xory -=1
        else:
            kari = ylis
            ylis = [i+yc for i in kari]
            ylis.extend([i-yc for i in kari])
            yc = 0
            xory +=1
if xory == 1:
    kari = xlis
    xlis =[i+xc for i in kari]
    xlis.extend([i-xc for i in kari])
    xc = 0
else:
    kari = ylis
    ylis = [i+yc for i in kari]
    ylis.extend([i-yc for i in kari])
    yc = 0

if x in xlis and y in ylis:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
#sを最高のパターンにして，tを最悪のパターンにすればいい
#continueで強制的に次のループへ
s = list(input())
t = list(input())

s.sort()
t.sort()
t.reverse()

if len(s)  == len(t):
    pattern == -1
elif len(s) < len(t):
    length = len(s)
    pattern = 0
else:#sのほうが長い時 pattern = 1
    length = len(t)
    pattern = 1

if pattern == -1:
    for i in range(length):
        if s[i] == t[i]:
            continue
        elif s[i] < t[i]:
            print("Yes")
            quit()
        else:
            print("No")
            quit()
elif pattern == 0:
    for i in range(length):
        if s[i] == t[i]:
            continue
        elif s[i] < t[i]:
            print("Yes")
            quit()
        else:
            print("No")
            quit()
    print("Yes")
elif pattern == 1:
    for i in range(length):
        if s[i] == t[i]:
            continue
        elif s[i] < t[i]:
            print("Yes")
            quit()
        else:
            print("No")
            quit()
    print("No")

Submission status: Runtime Error

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

print( int((N[0]+N[1])/2) )

Submission status: Runtime Error

Solution code:
import math

s=list(input().split('T'))
sn=[]

for i in range(len(s)):
    sn.append(len(s[i]))

x, y = map(int,input().split(' '))
x = x-sn[0]

snx=[]
sny=[]

for i in range(2,len(sn),2):
    snx.append(sn[i])

for i in range(1,len(sn),2):
    sny.append(sn[i])

#X軸判定
xflg = 0
ansx=[]
prex=[0]
for i in range(len(snx)):
    tmpx=set()
    for j in prex:
        tmpx.add(j+snx[i])
        tmpx.add(j-snx[i])
    prex=tmpx

if x in tmpx:
    xflg = 1

#y軸判定
yflg = 0
prey=[0]
for i in range(len(sny)):
    tmpy=set()
    for j in prey:
        tmpy.add(j+sny[i])
        tmpy.add(j-sny[i])
    prey=tmpy

if y in tmpy:
    yflg = 1

if xflg == 1 and yflg == 1:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys, argparse
from math import ceil

parser = argparse.ArgumentParser()
parser.add_argument('stdin', nargs=2)
args = parser.parse_args()
a,b = map(int, args.stdin)
avg = ceil((a+b)/2.0)
print(avg)

Submission status: Runtime Error

Solution code:
s = input()
t = input()

list_s = list(s)
list_s.sort()

list_t = list(t)
list_t.sort(reverse=True)

yes = False
if len(list_s) < len(list_t):
    yes = True

for i in range(len(list_s)):
    if len(list_t)-1 < i:
        break
    if list_s[i] < list_t[i]:
        yes = True
        break
    elif list_s[i] > list_t[i]:
        yes = False
        break

if yes:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
x = (a + b) / 2
if x > 0:
    return x + 1
else:
    return x

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int,input().split())
x = (a + b) / 2
if x > 0:
	return x + 1
else:
	return x

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a, b = int(input().split())
x = (a + b) / 2
if x > 0:
	return x + 1
else:
	return x

Submission status: Runtime Error

Solution code:
a, b = input().split()
x = (a + b) / 2
if x > 0:
	return x + 1
else:
	return x

Submission status: Runtime Error

Solution code:
import sys

x = 0

import math
for i in range(2):
	a1 = sys.stdin.readline()
	a2 = a1.rstrip()
	a = int(a1)
	x = x + int(a)

x = x/2
print(math.ceil(x))

Submission status: Runtime Error

Solution code:
import sys

x = 0

import math
for i in range(2):
	a1 = sys.stdin.readline()
	a2 = a1.rstrip()
	x = x + int(a1)

x = x/2
print(math.ceil(x))

Submission status: Runtime Error

Solution code:
import sys

a1 = sys.stdin.readline()
b1 = sys.stdin.readline()
a2 = a1.rstrip()
b2 = b1.rstrip()
import math
a = int(a2)
b = int(b2)
x = (a + b)/2
print(math.ceil(x))

Submission status: Runtime Error

Solution code:
import sys

a = sys.stdin.readline()
b = sys.stdin.readline()
a = x.rstrip()
b = x.rstrip()
import math

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

Submission status: Runtime Error

Solution code:
N = int(input().rstrip())
numbers =[ int(i) for i in input().rstrip().split()]
  

n_dic = {str(i):0 for i in set(numbers)}


for i in numbers:
    n_dic[str(i)] += 1
   
count = 0

for i,j in n_dic.items():
    if int(i) < j:
        count += j - int(i)
    
    elif int(i) > j:
        count += j
        
print(count)