Takahashi is a member of a programming competition site, ButCoder.
Each member of ButCoder is assigned two values: Inner Rating and Displayed Rating.
The Displayed Rating of a member is equal to their Inner Rating if the member has participated in 10 or more contests. Otherwise, the Displayed Rating will be their Inner Rating minus 100 \times (10 - K) when the member has participated in K contests.
Takahashi has participated in N contests, and his Displayed Rating is R. Find his Inner Rating.

-----Constraints-----
 - All values in input are integers.
 - 1 \leq N \leq 100
 - 0 \leq R \leq 4111

-----Input-----
Input is given from Standard Input in the following format:
N R

-----Output-----
Print his Inner Rating.

-----Sample Input-----
2 2919

-----Sample Output-----
3719

Takahashi has participated in 2 contests, which is less than 10, so his Displayed Rating is his Inner Rating minus 100 \times (10 - 2) = 800.
Thus, Takahashi's Inner Rating is 2919 + 800 = 3719.

Difficulty: introductory

Starter code:

Solutions:
n, r = map(int, input().split())

print(r+100*(10-min(10, n)))

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



n, r = list(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 + 100*(10-n)))
else:
  print(r)

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


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

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

if n >= 10:
  print(r)
else:
  print((r+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(R+100*(10-N))

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(100 * (10 - n) + r)
else :
  print(r)

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

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 = list(map(int, input().split()))
print((R+100*(10-N) if N <10 else R))


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

import os, sys, re, math

(N, R) = [int(n) for n in input().split()]

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


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

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())
ans=0;
if N>=10:
  ans+=R
else:
  ans+=R+100*(10-N)
print(ans)

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

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

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

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

m = input("")
list = m.split(" ")
if eval(list[0])<10:
    print(eval(list[1])+100*(10-eval(list[0])))
if eval(list[0])>=10:
    print(eval(list[1]))

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




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


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())
print(r if n >= 10 else r + 100*(10-n))

n, r = list(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 = list(map(int, input().split()))

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


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

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

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


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

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


n,r=map(int,input().split())
print([r+100*(10-n),r][n>=10])

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

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

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

n,p = map(int,input().split())
if n < 10:
  rate = p + 100*(10-n)
else:
  rate = p
print(rate)

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

N,R = list(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(r)

else:
    a = 100 * (10 - n)
    b = a + r
    print(b)

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())

print(r) if n>=10 else print(r+100*(10-n))


N, R = list(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 = R+100*(10-N)
  print(R)

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

N = list(map(int,input().split()))
if(N[0] < 10):
  print(N[1]+(100*(10-N[0])))
else:
  print(N[1])

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

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

n,r=map(int,input().split())
print(r-100*min(0,n-10))

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

if N>=10:
    print(str(R))
else:
    x=R+(100*(10-N))
    print(str(x))

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 n >= 10 else r + 100*(10-n))


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

def __starting_point():
    print((main()))

__starting_point()

n,r=map(int, input().split())
print(r+100*(10-n)*(n<10))

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

if N <= 9:
    ans = R + (1000-100*N)
else:
    ans = R
print(ans)

n, r = list(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))

def resolve():
	n,r = map(int,input().split())
	print(r if n>=10 else r+100*(10-n))
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(R)
else:
    print(R+100*(10-N))

N, R = map(int, input().split())
print(R+max(1000-100*N, 0))

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 = r + 100*(10-n)
    print(r)

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

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

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


# coding: utf-8
# Your code here!

[n,r] = input().split()
n = int(n)
r = int(r)

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

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

if n < 10:
    r += 100*(10-n)

print(r)

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

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)

#!/usr/bin/env python3
n,r=list(map(int,input().split()))
ans=r
if n>=10:
    print(r)
else:
    print((r+100*(10-n)))


N,R = map(int,input().split())
print((R,R +100*(10-N))[N<=10])

n, r = list(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 >= 10:
    print(R)

else:
    r = 100*(10-N)
    print(r+R)

def main():
    N, R = map(int, input().split())

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


def __starting_point():
    main()
__starting_point()

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(b+100*(10-a))

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


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((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-N))

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(R)
else:
  print(R+(100*(10-N)))

N, R = list(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+100*(10-N))
else:
  print(R)

n, r = list(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:
    print (R)
else:
    print (100*(10-N)+R)

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


[N, R] = [int(i) for i in input().split()]
print(R + 100*max(10-N, 0))

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