Problem:
 Score : 100 points    Problem Statement 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 1 2 2919      Sample Output 1 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 .       Sample Input 2 22 3051      Sample Output 2 3051

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

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

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

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

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

Solution (Python):
N, R = [int(s) for s in input().split()]

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

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

Solution (Python):


number, rate = map(int, input().split())

if (number < 10):
  print(rate+(100*(10-number)))
elif (number >= 10):
  print(rate)

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

print(R + 100 * max(0, 10 - N))

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

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

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

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

Solution (Python):
a,b=map(int,input().split())
if a<10:
  print(b+100*(10-a))
else:
  print(b)

Solution (Python):
n,r=[int(i) for i in input().split()]

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

Solution (Python):
N,R=map(int,input().split())
rate=0

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

print(rate)

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

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

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

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

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

Solution (Python):
N,K=[int(s) for s in input().split()]
if N<10:
  print(K+(10-N)*100)
else:
  print(K)

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
inp=list(map(int,input().strip().split()))[:2]
n,r=inp[0],inp[1]
if(n <= 9):
  print(100*(10-n)+r)
else:
  print(r)

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

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

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

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

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

print(ans)

Solution (Python):
n, r = (int(i) for i in input().split());

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

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

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

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

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

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

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

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

Solution (Python):
n,r = [int(x) for x in input().split()]

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

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

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

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

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

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

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

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

print(R+max(0,100*(10-N)))

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

if N>=10:
    print(int(R))

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

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

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

Solution (Python):
import sys
import math

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

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

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

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

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

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

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

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

Solution (Python):

from collections import Counter
def inputlist(): return [int(j) for j in input().split()]

N,R = inputlist()
if N < 10:
    R += 100*(10-N)
print(R)

Solution (Python):
class Beginner:
    def check_ten(self, N):
        if N >= 10:
            return True
        else:
            return False
    def calculate_rate(self, N, ten_or_not, open_rate):
        if ten_or_not:
            return open_rate
        else:
            return open_rate + 100*(10 -N)
if __name__ == "__main__":
    N, R = map(int, input().split())
    b = Beginner()
    result_1 = b.check_ten(N)
    result_2 = b.calculate_rate(N, result_1, R)
    print(str(result_2))

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

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

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

ans = 0

if N >= 1 and N <=10 :
    ans = R + ( 100 * (10 - N) )
else :
    ans = R

print(ans)

Solution (Python):
N, R = map(int, input().split())
1 <= N < 100
0 <= R < 4111

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

else:
    print(R);

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

Solution (Python):
from sys import stdin

N, R = [int(x) for x in stdin.readline().rstrip().split()]

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

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

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

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



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

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

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

Solution (Python):

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

Solution (Python):
from collections import defaultdict, deque
import sys
import heapq
import bisect
import math
import itertools
import string
import queue
import copy
import time

from fractions import gcd

sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7

def inp(): return int(sys.stdin.readline())
 
def inp_list(): return list(map(int, sys.stdin.readline().split()))

def lcm(x, y): return (x * y) // gcd(x, y)


N, R = inp_list()
I = 0
if N >= 10:
    I = R
else:
    I = R + 100 * (10 - N)
print(I)

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

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

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

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

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

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

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

if n < 10:
    print(int(r + 100 * (10 - n)))
else:
    print(r)

Solution (Python):
if __name__ == '__main__':
	N, R = map(int, input().split())

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

	print(R)

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

Solution (Python):
n,r=map(int,input().split());print(r+100*max(10-n,0))

Solution (Python):
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect




from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')

def main():
  n, r = map(int, readline().split())
  if n>=10:
    print(r)
  else:
    print(r+100*(10-n))
  
  
if __name__ == '__main__':
  main()

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

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

Solution (Python):

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

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

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

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

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

Solution (Python):
n = input()
(N, R) = n.split()
R_sin=0
if int(N) >= 10:
    print(int(R))
else:
    R_sin = int(R) + 100*(10-int(N))
    print(int(R_sin))

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

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

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

Solution (Python):
import itertools
import fractions
def main():
  n,r = map(int,input().split())
  print((100 * (10 - n)) + r if n < 10 else r)
  
if __name__ == '__main__':
  main()

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

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

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

Solution (Python):
N, R = list(map(int, input().split()))

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

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

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

Solution (Python):

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

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

Solution (Python):
N, R = map(int, input().split())
if N < 10:
    n2=100*(10-N)
    R2 = R+n2
    
elif N >= 10:
    R2 = R
    
print(R2)

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

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

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

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

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

Solution (Python):
import sys

n, r = map(int, sys.stdin.readline().split())

def main():
    i = r + 100 * max(10 - n, 0)
    print(i)

if __name__ ==  '__main__':
    main()

Solution (Python):
n, r = [int(i) for i in input().split()]
print(r if n >= 10 else r - 100 * n + 1000)

Solution (Python):
n, r = (int(x) for x in input().split())
if n >= 10:
  print(r)
else:
  print(r + 1000 - 100*n)

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

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

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

Solution (Python):
n = input().split()

if int(n[0]) >= 10:
  print(n[1])
else:
  print(100 * (10 - int(n[0])) + int(n[1]))

Solution (Python):
n, r = [int(i) for i in input().split()]
print(r if n >= 10 else r + 100 * (10 - n))

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

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

Solution (Python):
N,R = (int(x) for x in input().split())

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

Solution (Python):
def get():
    return list(map(int, input().split()))


a = get()
if a[0] < 10:
    print(a[1]+100*(10 - a[0]))
else:
    print(a[1])

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

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

Solution (Python):
a,b = map(int,input().split())
if a <= 10:
    print(b+100*(10-a))
else:
    print(b)

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

Solution (Python):

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

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

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

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

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

R_in = R + 100*max(0, 10-N)
print(R_in)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

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

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

print(r + max(0, 100 * (10 - n)))

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

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

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

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

if a<10:
  print(100*(10-a)+b)
else:
  print(b)

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

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

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

Solution (Python):
N,R=[int(s) for s in input().split()] 

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

print(Ans)

Solution (Python):
L, R = map(int, input().split())

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

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

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

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

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

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

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

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

else:
    print(R)

Solution (Python):
n, r = map(int, input().split())
print(r + 100*max(10-n, 0))

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

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

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

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


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

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

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

Solution (Python):

N, R = input().split()
n = int(N)
r = int(R)

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

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

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

Solution (Python):
n, r = [int(i) for i in input().split(" ")]
print(r if n >= 10 else r + 100 * (10 - n))

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

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

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

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

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

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

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

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

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

Solution (Python):
input=input().split()
N=int(input[0])
R=int(input[1])
gap=max(0,100*(10-N))
real=R+gap
print(real)

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

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

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

Solution (Python):
N, R = map(int, input().split())
print(R + 100*(10 - min(10, N)))

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

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

Solution (Python):
x  = [int(x) for x in input().split()]

if x[0] >= 10:
	print(x[1])
else:
	print(x[1]+(100*(10-x[0])))

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

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

if N >= 10:
    print(R)

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

Solution (Python):
e_cnt, disp_rate = map(int, input().split())
if e_cnt >= 10:
    print(disp_rate)
else:
    print(disp_rate + (100 * (10 - e_cnt)))

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

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

Solution (Python):

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

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

Solution (Python):

N,R = (int(x) for x in input().split(" "))


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

Solution (Python):



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




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

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

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

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

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

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

Solution (Python):
a,b = map(int,input().split())
if a>=10:
    print(b)
else:
    print(b+(100*(10-a)))

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

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

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

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

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

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

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

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

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

Solution (Python):
a, b = list(map(int, input().split()))
if a <= 10:
    print(b + 100*(10 - a))
else:
    print(b)

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

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

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

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

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

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

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

Solution (Python):
def main():
    N,R = map(int,input().split())
    if N < 11:
        a = 100 * (10 - N)
        print(a + R)
    else:
        print(R)
main()

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

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

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

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

Solution (Python):
n,ans = str(input()).split()
if int(n)<10:
    ans = int(ans) + (100*(10-int(n)))
print(int(ans))

Solution (Python):

import sys
sys.setrecursionlimit(10000000)
INF = 1<<32


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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    R = int(next(tokens))  
    solve(N, R)

if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
NR=list(map(int,input().strip().split()))
N=NR[0]
R=NR[1]

if N>=10:
    score=R
elif N<10:
    score=R+(100*(10-N))

print(score)

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

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

print(R+100*max(10-N,0))

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

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

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

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

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

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

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

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

Solution (Python):
data = input().split()

n = int(data[0])
r = int(data[1])

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

print(ans)

Solution (Python):
S = input()
H = S.split()

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

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

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

Solution (Python):
if __name__ == "__main__":
    n, r = map(int, input().split())

    k = max([0, 10 - n])

    print(r + 100 * k)

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

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

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

if n > 10:
  n = 10

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

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

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

print(rate)

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

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

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

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

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

if n >= 10:
    print(r)

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

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

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

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

print(answer)

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

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

Solution (Python):


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

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

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

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

Solution (Python):
n,r=map(int,input().split());print(r+max(0,1000-100*n))

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

Solution (Python):
import sys

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

if n[0]>9:
  print(n[1])
  sys.exit()
  
print(n[1] + 100*(10-n[0]))

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

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

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

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

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

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

Solution (Python):
N,R=list(map(int,input().split()))

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

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

if n>=10:
  print(r)

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

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

Solution (Python):
N,R=list(map(int, input().split()))

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

Solution (Python):
n,r=map(int,input().split())
print(max(0,10-n)*100+r)

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

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

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

Solution (Python):

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

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

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

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

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

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

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

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

Solution (Python):


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

if(n < 10):
  k = k + 100 * (10 - n)
  
print("{}".format(k))

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

Solution (Python):
A = input()
b,c = (A.split(' '))
d = int(b)
e = int(c)
f = e - d * 100 + 1000

if 0 < d < 11:
    print(f)
else:
    print(e)

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

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

Solution (Python):
a=input()
(n,m)=a.split(" ")
n=int(n)
m=int(m)
if n>=10:
    print(m)
else:
    print(m+100*(10-n))

Solution (Python):
N,R = [int(i) for i in input().split()]

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

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

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