peterverebics/CodeNet_Python_118 huggingface dataset:
#ABC156-A #Beginner                                                                                  
n,r = map(int, input().split())
if n >= 10:
    k = 100*(10-n)
    s = k + r
else:
    s = r
print(s)
def E(N,R):
    while int(N)==N and int(R)==R:
        while 1<= N <= 100 and 0<= R <= 4111:
            if N > 10:
                print(R)
            else:
                K = 100 * (10 - N)
                print(R+K)
N,R=map(int,input().split())
if N<10:
  print(N+(100*(10-N)))
else:
  print(R)
N,R = map(int,input().split(" "))
if N >= 10:
    print(R)
else:
    print(R-(100*(10-N)))
N, R = map(int, input().split())

if N >= 10:
  print(R)
else:
  print(R-(100*(10-N)))
N,K = map(int,input().split())
for i in range(1,10):
    if K**i <= N < K**(i+1):
        print(i+1)
        break
N, R = map(int, input().split())

if 10 <= N:
    print(R)
else:
    print(R - 100 * (10 - N))
n,r = map(int,input().split())
if n >= 10:
    print(r)
else:
    print(r - (100 * (10 - n)))
print((lambda x:int(x[1])-max(0,100*(10-int(x[0]))))(input().split()))
N, R = map(int, input().split())

if (N >= 10):
    ans = R
else:
    ans = R + 1000 - 100 * N
n, r = map(int, input().split())
if n < 10:
    k = 10 - n
    kk = 100 * k
    print(r - kk)
else:
    print(r)
n,r=map(int,input().split())
if n>=10:
  print(r)
else:
  print(int(r-100*(10-n)))
#--Beginner
#1行1列
number, rate = map(int, input().split())

if (number < 10):
  print(rate+(100*(10-number)))
elif (number <= 10):
  print(rate)
N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    print(R-100*(10-N))
a,b = map(int,input().split())

print(b if a >= 10 else b-100*(10-a))
N ,R = map(int, input().split())
if N >=10:
  print(R)
  
else:
  r = 100*(10 - N)
  R = R - r
  print(R)
# ABC156a


def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    # 再帰関数を使わない限りPypyで出すこと

    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(100*(10-n))


if __name__ == '__main__':
    main()
N, R = input("N and R: ").split()
N = int(N)
R = int(R)
if N<10:
  A = (100*(10-N))
  R = R + A
  print(R)
else:
  print(R)
print(lambda x:int(x[1])+(100*(10 - 10 if x[0]>=10 else x[0])),input().split())
n, k = map(int, input().split())
if n >= 10:
  print(k)
else:
  print(n + 100 * (10-k))
sum,rate=map(int,input().split())
if sum>=10:
    print(rate)
else:
     ans=rate-(100*(10-sum))
     print(ans)
n, r = map(int, input().split())
print( r if n >= 10 else r-100*(10-n))
N, R = map(int, input().split())
if N < 10:
  print(R - 100*(10-N))
else:
  print(R)
a,b=map(int,input().split())

if a >=10:
  c=int(b)
  print(c)
else:
  c=int(b-1000+100*a)
  print(c)
N,R = map(int, input().split())
if N >= 10:
    print(N)
else:
    print(R-(100*(10-N)))
# -*- coding: utf-8 -*-
def main():
    N,R = map(int,input().split())
    if N >= 10:
        print(R)
        return
    else:
        print(R-(100*(10-N)))

if __name__ == '__main__':
    main()
N,R=map(int, input().split())
print(R+100*min(10-N,0))
def solve():
  n, r = list(map(int, input().split()))
  if n > 10:
    print(r - 100 * (10 - n))
    return
  
  print(r)
  return

if __name__ == "__main__":
  solve()
n,r = map(int,input().split())
if n < 10:
    print(r-(100*(10-n)))
else:
    print(r)
def main():
    n, r = map(int, input().split())
    if n >= 10:
        print(r)
    else:
        print(r - (100 * (10 - n)))


if __name__ == "__main__":
    main()
N,R=map(int,input().split())
if N<10:
  print(R-(100*(10-N)))
else:
  print(R)
N,R = map(int,input().split())
if int(N) < 10 :
    print( 100*(10 - int(N)) )
else :
    print( 'R' )
"""
じょえチャンネルおもしろいよ～～～
https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ
"""

n,r=map(int,input().split())
if n==10:print(r)
else:print(r+100*(10-n))
N, R = map(int, input().split())
if N>=10:
  print(R)
else:
  print(R+1000*(10-N))
n, r = map(int, input().split())
if n >= 10:
    print(r)
else:
    print(100*(10-n))
N, R = map(int, input().split())

if N >= 10:
    rate = R
else:
    rate = R - (100 * (10 - N))

print(rate)
n, r = map(int, input().split())
if n >= 10:
  print(r)
else:
  print(r + (100 * (10-r)))
i = input().split()
N = int(i[0])
R = int(i[1])

if N > 10:
  result = R
else:
  result = 100 * (10 - N)

print(result)
n, r = map(int, input().split())
print(n, r)
if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n))
N,K = map(int, input().split())
counter = 0
K_ = 1
i=True
while i==True:
  K_ = K_ * K
  if N < K_:
    print(counter)
    i=False
  counter += 1
n, r = map(int, input().split())
if n < 10 :
    print(r+(100*(10-n)))
else :
    print(n)
N, R = map(int, input().split())

if N >= 10:
    print(N)
else:
    print(R + 100 * (10 - N))
N, R = input("N and R: ").split()
N = int(N)
R = int(R)
if N<10:
  R = R+(100*(10-N))
  print(R)
else:
  print(R)
n, r = map(int, input().split())

if n < 10:
    print(r + 100 * (10 - n))
n, r = map(int, input().split())
if n >= 10:
    rating = r
else:
    rating = 100 * (10 - n)
print(rating)
N,K=map(int,input().split())
A=0
while N>=K**A:
    A=A+1

print(A)
n,k=map(int,input().split())
if n<10:
  c=100*(10-n)
  ans=k-c
  if ans<0:
    print(0)
    exit()
  else:
    print(k-c)
else:
  print(k)
n, r = map(int, input().split())
if  n >= 10:
  print(r)
else:
  print(r- 100*(10-n))
# input
N, R = map(int, input().split())

if N >= 10:
    print(R)
else:
    print(R - (100 * (10 - N)))
n,m=map(int,input().split())
if n<10:
  print(m+800)
else:
  print(m)
N,R=map(int,input().split())
if(N>=10):
  print(R)
else:
  print(R+1000-100*R)
N, R = map(int, input().split())

if N >= 10:
  print(R)
else:
  print(R - 100*(10-N))
from sys import stdin

n,k = map(int,input().split())

num = n
sum_k = k

while sum_k <= n:
    sum_k= sum_k * k

print(len(str(sum_k)))
N,R=map(int,input().split())
if N>=10:
  a=R
else:
  a=100*(10-N)
print(a)
N,R=input().split()

N=int(N)
R=int(R)

if N>=10:
    print (R)
else:
    print(R-(100*(10-N)))
n, r = map(int, input().split())

if 10 <= n: print(r)
else:       print(r-(100*(10-n)))
def f():
  n, r = map(int,input().split())
  if n > 9:
    return r
  else:
    return 100 * (10 - n)
N, R = map(int, input().split())
if N > 10:
    print(R)
else:
    print(R-100*(10-N))
N,R = list(map(int, input().split()))
if N >= 10:
    print(R)
N,R = map(int,input().split())
if N >= 10:
    print(R)
else:
    print(100*(10-N))
def contest(N, R):
    if(N > 10):
        return R
    else:
        return R + 100 * (10-N)

if __name__ == "__main__":
    N, R = map(int, input().split())
n,r = map(int,input().split())
if(n <=10):
  print(r-100*(10-n))
else:
  print(r)
N,K=map(int,input().split())
if N >=10:
    print(K)
else:
    print(K-100*(10-N))
# -*- coding: utf-8 -*-
N,R=map(int,input().split())
print(R+100*(10-min(N, 9)))
k = list(map(int, input().split()))
if k[0] >= 10:
  print(k[1])
else:
  print(100*(10-k[0]))
N, R = map(int, input().split(" "))

if N < 10:
    print(R + N*100)
else:
    print(R)
N, R = map(int, input().split())
if N >= 10:
  print(R)
else:
  print(R-100*(10-N))
N,R = map(int,input().split())
if N >= 10:
  rat = R
else:
  rat = R - 100*(10-N)
print(int(rat))
n,k = map(int, input().split())
 
for i in range(1,10):
  if n < k ** i:
    print(i - 1)
    break
n,r=map(int, input().split())
if n>=10:
  print(r)
else:
  print(r-100*(10-n))
n,r=map(int,input().split())
if n>=10:
    print(r)
else:
    ans = r + 100 * (10 - r)
    print(ans)
n, r = map(int, input().split())

ans = r
ans += 100 * (10 - n)

print(ans)
N, R = map(int, input().split())
if N >= 10:
  print(R)
else:
  print(R - 100 * (10 - N))
n,r = list(map(int,input().split()))

if n>=10:
    print(r)
else:
    t = 100*(10-n)
    print(r-t)
# abc156_a.py
N, R = map(int,input().split())
if N<10:
    print(R + 100*10-N)
else:
    print(R)
N,R = map(int,input().split())
if N<10 :
    print( R -(100*(10-N)))
else:
    print(R)
N,R = map(int,input().split())
if N >= 10:
  print(R)
else:
  print(R-100*(10-N))
N,R = map(int, input().split())

if N < 10:
  A = 100*(10-N)
  
  print(R-A)
else:
  print(R)
a,b=list(map(int,input().split()))
if a<0:
  print(100*(10-a)+b)
else:
  print(b)
n, r = map(int, input().split())
print( r if n <= 10 else r-100*(10-n))
n, r = map(int, input().strip().split())

if n>=10:
    print(r)
else:
    print(r+100*(10-r))
n,r=map(int,input().split())

if n>=10:
  print(r)

else:
  print(100*(10-n))
def E(N,R):
    if int(N)==N and int(R)==R:
        if 1<= N <= 100 and 0<= R <= 4111:
            if N > 10:
                print(R)
            else:
                K = 100 * (10 - N)
                print(R+K)
N,R = input().split()

N = int(N)
R = int(R)

if N >= 10:
    print(R)
else:
    print(100*(10-N))
L, R = map(int, input().split())
print(type(L), L, R)

if L < 10:
    print(R + (100*(10-L)))
else:
    print(R)
N, R = map(int, input().split())
print(R if N >= 10 else R-100*(10-N))
n, r = map(int, input().split())
if n >= 10:
    print(r)
else:
    print(r - 100 * (10 - n))
a,b=map(int,input().split())
if a>=10:
    print(b)
else:
    print(100*(10-2)+b)
N, R = map(int,input().split())
if N >= 10:
	print(N)
else:
	print(R+100*(10-N))
# print('input >>')
N, R = map(int,(input().split()))

if N < 10:
    ans = R - 100 * (10-N)
else:
    ans = R

# print('-----output-----')
print(ans)
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

n, r = na()

if n >= 10:
  print(r)
else:
  print(100*(10-n))
n, r = map(int, input().split())
 
if n < 10:
	print(r + 800)
else:
    print(r)
N,R = map(int,input().split())
print(type(N), N, R)

if N<10:
    R=R+100*(10-N)
    print(R)
else:
    print(R)
N,R = input("N: ").split()
#R = input("R: ")
N = int(N)
R = int(R)
if N<10:
  A = (100*(10-N))
  R = R + A
  print(R)
else:
  print(R)
n,r = [int(x) for x in input().split()]

if n < 10:
    print(r - 100*(10-n))
else:
    print(r)
n, k=map(int,input().split())
x=100*(100-n)
if n>9:
  x=0
print(k+x)
n, r = map(int, input().split())
if n >= 10:
  print(r)
else:
  print(100-10*r)
n,r = map(int,input().split())

if n<10:
  print(r-100*(10-n))
else:
  print(r)
N, P = list(map(int, input().split()))
if N >= 10:
  print(P)
else:
  print(P - 100*(10-N))
def E(N,R):
    if int(N)==N and int(R)==R:
        if 1<= N <= 100 and 0<= R <= 4111:
            if N > 10:
                print(R)
            else:
                K = 100 * (10 - N)
                print(R+K)
        else:
            print('please input right numbers')
    else:
        print('please input an integer')
n,r = map(int,input().split())
ans = 0

if n >= 10:
  ans = r
else:
  ans = 100 * (10 - n)
  
print(ans)
n, r = map(int, input().split())
if n >= n:
    print(r)
else:
    print(r + 100(10-n))
N, R = map(int,input().split())
if N >= 10 :
  print(R)
else:
  print(R - 100*(10-N))
n, r = map(int, input().split())
if n >= 10:
  print(r)
else:
  print(100*(10-n))
import numpy as np

i = list(map(int, input().split()))
N = i[0]
R = i[1]

if N>=10:
    print(R)
else:
    print(R-(100*(10-N)))
N,R = map(int, input().split()) 

if N>=10:
    print(R)
else:
    print(R - 100 * (10-N))
N,R = list(map(int,input().split()))

if N >= 10:
  print(R)
else:
  print(100*(10-N))
N,R = map(int,input().split())
if N > 9:
  print(R)
else:
  print(R + 100*(N-1))
N,R =map(int,input().split())
if N>=10:
  print(R)
else:
  print(R-(100*(10-N)))
N,R = [int(i) for i in input().split()]

if N < 10:
    print(R + (100 * (10 - 2)))
else:
    print(R)
sum,rate=map(int,input().split())
if sum>=10:
    print(rate)
else:
     ans=rate-100*(10-sum)
     print(ans)
N, R = map(int, input().split())
if N < 10:
    print(100*(10-N) + R)
print(R)
n,r = map(int, input().split())

if n >= 10:
    print(r)
else:
    print(100*(10-n))
N,R=(int(i)for i in input().split())

if N >= 10:
    print(R)
else:
    print(R-100*(10-N))
#!/usr/local/bin python
# -*- coding: utf-8 -*-
#
# ~/PycharmProjects/atcoder/B-Digits.py
#
# 1<= n <= 10**9
# 2<= k <= 10
#

n, k = map(int, input().split())

digits = int(1)

for digit in range(1, 30):  # 2**29 < 10**9 < 2**<30 なので最高でも30桁
    if k ** digit <= n:
        digits = digits + 1
    else:
        break

print(digits)
N, R = map(int, input().split())
if N >= 10:
    print(R)
else:
    print(100 * (10 - N))
N,R = map(int,input().split())
if N>=R:
  print(R)
else:
  print(R+100*(10-N))
N, R = map(int, input().split())
print(R if N>=10 else R-100*(10-N))
n, r = [int(_) for _ in input().split()]
print(r if n >= 10 else r - 100 * (10 - n))
N,R = map(int,input().split())

print(R + (100*(10-N)))
N, R = map(int,input().split())
if N >= 10 :
  print(R)
else:
  print(100*(10-R))
N, R = map(int, input().split())

A = int(0)


if N>=10:
  A = N
else:
  A = 100*(10-N)+R

print(A)
N, R = map(int, input().split())
if N < 10:
    ans = R - 100 * (10 - N)
else:
    ans = R
print(ans)
n,r = map(int,input().split())
if (n<10):
    print(r+100*(10-n))
elif(n>10):
    print(n)
def resolve():
    n, r = map(int, input().split())
    if n < 10:
        print(100*(10-n)+r)
    else:
        print(r)
N,R = map(int,input().split())
if N < 10 :
    print( 100*(10 - N) )
else :
    print( R )
N,R = map(int,input().split())

if N < 10:
    print(R + N)
else:
    print(N)
N,R = map(int,input().split())

if N >= 10:
  print(R)
else:
  print(R-100*(10-N))
n,r=map(int,input().split())
if n>=10:
  naibu=r
else:
  naibu=r-100*(10-n)
print(naibu)
N,R=map(int, input().split()) 
if N>=10:
  t=R
else :
  t=R+100*(10-N)
print(R)
N,R = map(int,input().split())
if N < 10:
  R = R - 100 * (10 - N)
  print(R)
else:
  print(R)
n,r = map(int,input().split())
print(r if n >= 10 else r - 100*(10-n))
n,r=map(int,input().split())

if n>=10:
  print(r)
elif n<10:
  print(r-(100*(10-n)))
a,b=map(int,input().split())
if(a<10):
  print(b-100*(10-a))
else:
  print(b)
N,R = map(int,input().split())

if N <= 10:
  print(R - (10-N)*100)
else:
  print(R)
n,r = map(int,input().split())
if n<10:
	r = 100*(10-n)
print(r)
# int
# A = list(map(int, input().split()))
# string
# S = input().split()

N, R = map(int, input().split())

if N >= 10:
    print(R)
else:
    print(100 * (10-N))
n, r = map(int, input().split())
if n < 10:
  ans = r - (100 * (10 - n))
  print(ans)
else:
  print(r)
n,r = map(int,input().split())
if n >= 10:
    print(r)
else:
    print(100*(10-n))
N,R = map(int,input().split())
if N < 10:
    print((100*(10-2))+R)
else:
    print(R)
n,r = map(int, raw_input().split(' '))
def f(n,r):
  if n >= 10:
    return r
  else:
    return r - 100 * (10 - n)
print f(n,r)
N, R = list(map(int, input().split()))

if N < 10:
  print(100 * (10 - N))
else:
  print(R)
N, R = map(int, input().split())
if N < 10:
  O = N
else:
  O = R + 100*(10-N)
print(O)
N, R = map(int, input().split())
if N < 10:
    print(N + R)
print(R)
N,R = list(map(int, input().split()))
if R >= 10:
    print(R)
else:
    print(R - (100*(10-N)))
N,R = map(int, input().split())
if N >= 10:
    print(R)
else:
    print(R-(100*(10-N)))
a,b = map(int,input().split())
c= b + 100*(10-a)
print(c)
n, r = map(int,input().split())
print(r-10*max(0,10-n))
N,R = map(int,input().split())
if N< 10:
  A = 10-N
  print(100*A)
else:
  print(R)
N, R = map(int, input().split())
if N > 10:
  print(R)
else:
  print(R-100*(10-N))
N,R=map(int,input().split())
if(N>=10):
  print(R)
else:
  print(R-100*(10-N))
a,b = map(int,input().split())
if a>=10:
    print(b)
else:
    print(100*(10-b))
n,k = map(int,input().split())

for i in range(10**10):
  if n <= k**(i+1) -1:
    print(i+1)
    exit()
n, r = [int(elem) for elem in input().split()]

if n < 10:
  print(r - 100 *(10-n))
else:
  print(r)
N,R = map(int,input().split())
print(R if N <= 10 else R+N*100)
n,r = map(int,input().split())
ans = n
if n < 10:
    ans = r + 100*(10-n)
print(ans)
N, R = map(int, input().split())
if N < 10:
  print(R - 100 * (10 - N))
else:
  print(R)
N, R = map(int, input().split())

print(R if 10 <= N else (R - (100 * (10 - N))))
n, r = map(int,input().split())

if n>10:
  print(r)
else:
  print(r-(100*(10-n)))
attend, rate = input().split(' ')
 
if int(attend) >= 10:
  print(rate)
else:
  print(int(rate) - 100 * (10 - int(attend)))
n, k = list(map(int, input().split(' ')))
print(n - 100 * (10 - min(10, k) * 2))
N,R = input().split()
N,R = int(N),int(R)
L = R
if N < 10:
    L = R - 100*(10-N)
else:
    L = R

print(L)
K,R = map (int, input ().split ())
if K < 10:
  print (R-100*(10-K))
else:
  print (R)
N,R = map(int,input().split())
if N <= 10:
  print(R+(100*(10-2)))
else:
  print(R)
n,r=input().split()
n=int(n)
r=int(r)
if n>=10:
  print(r)
else:
  print(r-100*(10-n))
n, r = map(int, input().split())
if n <= 10:
  print(r)
else:
  print(r - 100 * (10 - n))
n, k = map(int, input().split())

i = 0
while n > 0:
    n = n - k**i
    if n < 0:
        break
    i += 1

print(i)
n, r = map(int, input().split())
if n < 10:
    print(r - 100 * (10 - n))
else:
    print(r)
N, R = map(int, input().split(' '))
if N < 9:
    L =  R+100*(10-N)
    print('{}, {}'.format(N, L))

else:
    print('{}, {}'.format(N, R))
tmp = input().split(" ")

N = int(tmp[0])
R = int(tmp[1])

if N >= 10:
  print(R)
else:
  ans = R + 100 * (100 - N)
  print(int(ans))
N  , R = map(int,input().split())
if N >= 10:
    print(R)
else:
    print(N + 100*(10 - R))
N, R = map(int, input().split())

print(R if 10 <= N else (100 * (10 - N)))
n, r = map(int, input().split())

if n < 10:
    a = 100 * (10 - n)
    print(r - a)
else:
    print(r)
N, R = map(int, input().split())
if (N>=10):
    print(R)
else:
    print(R-100*(10-N))
a,b=map(int,input().split())
print(b+100*min(0,(10-a)))
#A
n, r = map(int, input().split())
if n >= 10:
    print(r)
else:
    print(r - 100 * (10 - n))
n, r = map(int,input().split())

if n > 10:
  print(r)
else:
  print(r - 100 * (10 - n ))
N,R= map(int,input().split())
if N > 9:
    print(R)
else:
    print(R-10*(10-N))
n,r = map(int,input().split())
if n < 10:
    print(r+100*(10-n))
else:
    print(n)
a,b = list(map(int, input().split())) 
if a < 10:
  print(b-1000+100*a)
else:
  print(b)
N,R=input().split()
N=int(N)
R=int(R)
if N>=10:
	print(R)
else :
	print(100*(10-N))
n,r = input().split()
n = int(n)
r = int(r)

if n >= 10:
  i = r
else:
  i = r + 100 * (10 - n)
N, R = map(int, input().split())
if N<=2:
  print(R + (10-N)*100)
else:
  print(R)
n, r = map(int, input().split())
if n >= 10:
  print(r)
else:
  print(r - 100 * (10 - n))
n, r = map(int, input().split())
print(n, r) 

ans = 0
if n >= 10:
  ans = r
else:
  ans = r + (100 * (10 - n))

print(ans)
n, r = map(int,input().split())
if n < 10:
    print(r-100*(10-n))
else:
    print(r)
N,R=map(int, input().split()) 
if N>=10:
    print(R)
if 0<=N<=10:
    print(R+100*(10-N))
n, R = map(int, input().split())
if n >= 10:
  print(R)
else:
  print(R-100*(10-n))
N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    R-=100*(10-N)
    print(R)
n,r=map(int,input().split())

if n>=10:
  print(r)
else:
  print(r+10000-100*n)
def resolve():
    N, R = map(int, input().split())  

    if N >= 10:
        print(R)
    else:
        R = R - 100 * (10 - N)
        print(R)
 
if __name__ == "__main__":
    resolve()
N,R = map(int, input().split())
print(R - 100 * (10 - max(10,N)))
N, R = map(int, input().split())
rating = R if N >= 10 else R - 100*(10-N)
print(rating if rating > 0 else 0)
n,r=map(int,input().split())
if n>=10:
    print(r)
else:
    print(r-1000+100*n)
N,K = map(int, input().split())
counter = 0
K_ = 1
i=True
while i==True:
  K_ = K_ * K
  if K < K_:
    print(counter)
    i=False
  counter += 1
n, r = map(int, input().split())
print(r - (10 - min(n, 10)) * 100)
N, R = map(int, input().split())
print(R if N >= 10 else 100 * (10 - N))
n,r=map(int,input().split())
if n<10:
    r+=100*(10-r)
print(r)
n,r=map(int,input().split())
if n<10:
    r+=800
print(r)
c, d = map(int, input().split())

print(d + 100 * (10-c))
n, r = map(int, input().split())
if n >= 10:
  print(r)
else:
  print(r + 100 * (10 - r))
N,K=[int(s) for s in input().split()]
if N<10:
  print(K-(10-N)*100)
else:
  print(K)
n,k = map(int,input().split())
P = 10**9+7

ans = 1
nCl = 1
n1Cl = 1
for l in range(1,min(k+1,n)):
    nCl = nCl*(n+1-l)*pow(l,P-2,P)%P
    n1Cl = n1Cl*(n-l)*pow(l,P-2,P)%P
    ans = (ans+nCl*n1Cl)%P

print(ans)
InputValue = input().split(' ')

print(InputValue[0])

N = int(InputValue[0])
R = int(InputValue[1])

if 0<=R<=4111 and 1<=N<=100:
    if N>=10:
        IR = R
        print(IR,end='\n')
    elif N<10:
        IR = R + 100*(10-N)
        print(IR,end='\n')
a,b = map(int, input().split())
if a < 10:
  ans = b + 100*(10 - a)
else:
  ans = b
print(b)
n,r = map(int,input().split())
a = min(10,n)
a = 100*(10-a)
print(r-a)
N,R=map(int, input().split())
print(R if N>=10 else R-100*(10-N))
n,r=map(int,input().split())

if n>=10:
  print(r)

else:
  print(r-(100*(10-n)))
N,R=map(int,input().split())
if N>=10:
    print(R)
else:
    print(R+100*(10-R))
N, R = map(int, input().split())
if N >= 10:
    print(R)
else:
    print(R*(10-N))
n, r = map(int, input().split())
print(n + 100 * (10-r))
N,R = map(int,input().split())
if N < 10 :
    print(R - 100*(10-N))
else :
    print(R)
n,k=map(int,input().split())
i=0


while n>=k**i:

    i+=1

else:
    print(i)
N,R = map(int,input().split())

if N >= 10:
  print(R)

else:
  print(R-100*(10-N))
from sys import stdin
n,k = map(int,stdin.readline().rstrip().split())
if n >= 10:
    print(k)
else:
    print(n*100+k)
x,y = map(int,input().split())
print(y+(100*(10-x)))
N, R = map(int, input().split())
if N >= 10:
  print(R)
else:
  print(100*(10-N))
N,R = list(map(int,input().split()))
print(N,R)

if N < 10:
    X = R + 100*(10-N)
else:
    X = R
print(X)
n,r = map(int,input().split())
rate = 0

if n<10:
  rate = r + 100*(10-n)
elif n>10:
  rate = r
  
print(rate)
N,K=map(int,input().split())
i=0
while N>=K**i:
    i+=1
print(i)
l = list(map(int, input().split()))
 
if l[0] > 10:
  print(l[1])
else:
  print(100*(10-l[1]))
n,r = map(int,input().split())

print(100 * (10 - n) + r)
N,R = list(map(int,input().split()))
print( int(R +  100*max(0,10)) )
N,R=map(int, input().split()) 

if N >= 10:
  print(R)
else:
  print(R - 100*(10-N))
n,r = map(int,input().split())

if n >= 10:
  print(r)
else:
  r -= 100*(10-n)
  print(r)
n,r=map(int,input().split())
if n>=10:
    print(r)
else:
    r-=100*(10-n)
    print(r)
n,r = map(int,input().split())
 
if n < 10:
  print(r-(100*(10-n)))
else:
  print(r)
from sys import stdin


def get_result(data):
    N, R = data
    return int(R + 100 * (10 - N))

if __name__ == '__main__':
    data = list(map(int, stdin.readline().split(' ')))
    result = get_result(data)
    print(result)
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

n, r = map(int, readline().split())
if 10 < r:
    print(r)
else:
    print(100 * (10 - n) + r)
def main():
    B = list(map(int, input().split()))
    # # [1,2,3]
    N = B[0]
    R = B[1]

    if N < 10:
        print(R)
    else:
      A = 100 * (10 - N)

      print(R + A)

main()
N,R = map(int,input().split())	
if N<10:
    N -= 10
    float(N)
    N *= 100
    R -= N
    print('R')
else:
    print('R')
n,r = map(int,input().split())
if 0 <= n <= 10:
  print(r-100*(10-n))
else:
  print(r)
N, R = map(int, input().split())
print(R if 10>=N else R + 100*(10-N))
N,R=map(int,input().split())

if N<10:
  r=R-(100*(10-N))
else:
  r=R
print(r)
N,R = map(int,input().split())

inside = 0
if N >= 10:
  inside = R
else:
  inside = R - 100*(10-N)

print(inside)
N,R=map(int,input().split())
if N>=10:
  print(R)
else:
  print(100*(10-N))
n, r= map(int, input().split())

if(n<10):
    print(100*(10-2)+r)
else:
    print(r)
n,r = map(int,input().split())
if n > 10:
  n = 10
print( r - 100 * (10 -n))
n, r = list(map(int, input().split()))

if n >= 10:
  print(n)
else:
  print(r + 100 * (10 - n))
import sys
import numpy as np

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = ir()
H = np.array(lr())
X = np.minimum.accumulate(H[::-1])[::-1]
Y = H - X
answer = np.any(Y>=2)
print('No' if answer else 'Yes')
n = int(input())
h = list(map(int,input().split()))
ans = 'Yes'
temp = h[0]
for i in range(1,n):
  if h[i]>temp:
    h[i] -= 1
  elif temp>h[i]:
    ans = 'No'
  temp = h[i]
print(ans)