peterverebics/CodeNet_Python_118 huggingface dataset:
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(r)
else:
    print(r+100*(10-n))
N, R = map(int, raw_input().split())

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

if N >= 10:
  print(R)
else:
  print(R + x)
a = raw_input()
n = int(a.split(" ")[0])
r = int(a.split(" ")[1])

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

n, r = map(int, input().split())
f(n, r)
N,R = map(int,input().split())
if(N<10):
    print(R+100*(10-N))
else:
    print(R)
s=str(input())
if s== 'AAA' or s=='BBB':
  print('No')
else:
  print('Yes')
n,k=map(int,input().split())
if n<10:
  c=100*(10-n)
  print(k-c)
else:
  print(k)
a,b=map(int, input().split())

if a >= 10:
    print(b)
else:
    print(b-100*(10 - a))
a,b=map(int,input().split())
print(b if a>=10 else b+100*(10-b))
N,R= map(int,input().split())
if N > 9:
    print(R)
else:
    print(R-100*(10-N))
# int
# A = list(map(int, input().split()))
# string
# S = input().split()

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(9000):
    if K**i<=N<K**(i+1):
        print(i+1)
a,b = list(map(int, input().split())) 
if a < 10:
  print(b)
else:
  print(b-1000+100*a)
N = 2
X = [1,4]

ans = []
count = 0

for i in range(1,N+1):
    number = 0
    count = 0
    for j in X:
        number = number + ((j-i)**2)
        count = count + 1
        if N == count:
            ans.append(number)

print(min(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)
else:
  print(r - 100 * (10 - n))
n,*a=map(int,open(0).read().split());k=10**9+7
c=(1<<n)%k-1
for l in a:
	X=Y=j=Z=1;d=k-2
	for i in range(l):X=X*(n-i)%k
	while j<=l:Y=Y*j%k;j+=1
	while d>0:Z=Z*Y%k if d&1==1 else Z;Y=Y*Y%k;d>>=1
	c-=X*Z%k
print(c%k)
N, R = map(int,input().split())

if N>=10:
  print(R)
else:
  print(10-R/100)
a,b = map(int, input().split())
if a < 10:
  c=int(b-100*(10-a))
else:
  c=int(b)
print(c)
N = 2
R = 2919
if N<=10:
  R = R + (100*(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:
  print(r-100*(10-n))
else:
  print(r)
a,b = map(int,input().split())

c = a*b

if c % 2 ==0:
  print("Even")
else:
  print("Odd")
n,r=map(int,input().split())
if n>=10:
  print(r)
else:
  R=r-100*(10-n)
  print(R)
a,b = map(int, input().split())
if a < 10:
  print(b-100*(10-a))
else:
  print(b)
N, R = list(map(int,input().split(" ")))

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

if n > 10:
    print(r)
else:
    print(r - 100 * (10 - n))
a, b = input().split()
if int(a) < 9:
  ans = int(b) - 100 * (10 - int(a))
  print(ans)
else:
  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(100 * (10 - n))
else:
    print(r)
n = input().split()
print(n)

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

if N < 10:
  R = R - (100 * (10 - N))
  if R < 0:
    R = 0
print(R)
N, R = map(int, input().split())
print(R + 100 * (10 - N))
n, r = map(int, input().split())
 
if n <= 10:
	print(r + 800)
else:
    print(r)
def main():
 n, r = map(int,input().split())
 if n >= 10:
     print(r)
 else:
     print(r + 100* (10 - r))
main()
N,R = list(map(int, input().split()))
S= 10-N
if N >= 10:
    print(R)
else:
    print(R-(100*S))
N,K=map(int,input().split())
if N >=10:
    print(K)
else:
    print(K-100*(10-K))
a,b = map(int,input().split())

c = a*b

if c % 2 ==0:
  print ("Even")
else:
  print("Odd")
N,R = map(int,input().split())

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

if n >= 10:
  print(r)
else:
  print(r - 100 * (10-n))
a,b=map(int,input().split())
c=0
if a >=10:
  print(b)
else:
  c = 100 * (10-a)
  print(c)
n,k=map(int,input().split())
print(k+100*(10-k) if n<10 else k)
N,R = map(int,input().split())
if N >= 10:
    print(R)
else:
    print(R-(100*(10-N)))
n, r= map(int, input().split())
ans = 0
if n < 10: ans = 100 * (10 - n)
else: ans = r
print(ans)
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(r-100*(10-n))
else:
  print(r)
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-N))
time,rate = map(int,input().split())
ans = 0
if time >= 10:
  ans = rate
else:
  ans = rate - 100*(10 - time)
print(ans)
N,R=list(map(int,input().split()))

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

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

print(R - 100 * max(0, 10-N))
from sys import stdin,stdout
Pi = lambda x: stdout.write(str(x) + '\n')
S = lambda x: x*(x+1) // 2
R = lambda:stdin.readline()
Ri = lambda x:map(int,x.split())

def main():  	
	for x in stdin:
		a,b =  Ri(x)
		if a<10:a = 10 - a
		Pi(b+(100*a))
				
if __name__ == "__main__":
    main()
n, r = map(int, input().split())
if n < 10:
  print(r)
else:
  print(r + 100*(10 - n))
a = input().split()
print(int(a[1]) + 100*(10-int(a[0])))
# -*- coding: utf-8 -*-
N,R = map(int, input().split())
if N < 10:
	R = R - 100 * (10 - N )
     
print(R)
n, r = map(int, input().split())
print(r - 100 * max(10 - n, 0))
from sys import stdin
N,R = [int(x) for x in stdin.readline().rstrip().split()]
print(R + (100*(10-N)))
n, r = map(int, input().split())

if n < 10:
	print(r)
else:
  print(r + 800)
n, k = map(int, input().split())

def calc(n, k):
  i = 1
  tmp = n
  while (tmp > k):
    tmp = tmp - k**i
    i += 1
    return i

print(str(calc(n,k)))
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-r))
a=input().split()
nm=[]
for i in range(2):
  b=int(a[i])
  nm.append(b)
if nm[0]<9:
  nm[1]+=(100*(10-nm[0]))

print(nm[1])
n,r = map(int,input().split())
if n >= 10:
    print(r)
else:
    k = 10 - n
    print(100 * k)
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:
    r-=100*(10-n)
print(r)
from sys import stdin
N,R = [int(x) for x in stdin.readline().rstrip().split()]
print(R - (100*(10-N)))
a,b = list(map(int, input().split())) 
if a >= 10:
  print(b)
else:
  print(b-1000+100*a)
N,R = [int(i) for i in input().split()]

if N < 10:
    print(R + (100 * (N- 2)))
else:
    print(R)
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#l = list(map(int, input().split()))

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

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

print(ans+1)
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:
  print(b)
else :
  print(b + a*100)
N,R = map(int,input().split())
if N < 10:
  print(R + 100*(100-N))
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(100*(10-N))
else:
  print(R)
N,R=map(int,input().split())
print(R-100*(10-N))
N, R = list(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,30):
    if n >= k**(i-1) and n < k**i:
        print(i)
n, r = map(int,input().split())
print(r)
if n < 10:
    r = r + 100*(10-n)
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)
else:
    a = 0
print(a + R)
n, r = map(int, input().split())

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

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

if n < 10:
    a = 100 * (10 - n)
    b = r - a
    if b >=0:
        print(b)
    else:
        print(0)
else:
    print(r)
s = input().split()

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

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

print(ans)
n,r = map(int,input().split())
print(r+100*(10-n))
n,r = list(map(int,input().split()))
ans = 0
if(n < 10):
    ans = r
if(n >= 10):
    ans = r+100*(10-n)
print(ans)
n,r=map(int,input().split())
print(r-100*max(0,10-n))
import sys
sys.setrecursionlimit(10**6)
readline = sys.stdin.readline
n,r = [int(i) for i in readline().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-b))
N, R = map(int, input().split())
print(R if 10>=N else R+1000-N*100)
import sys
input = sys.stdin.readline

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

if N >= 10:
    print(R)
else:
    print(R + 100 * (10 - R))
n, r = list(map(int, input().split()))
if n >= 10:
    print(r)
else:
    print(r - 100 * (10 - n))
N, R =(int(x) for x in 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 10<=n :
  print(r)
elif 1<= n <10:
  print(r+100*(100-n))
N,*X=map(int,open(0).read().split());print(sum(map(lambda x:(round(sum(X)/N)-x)**2,X)))
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+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:
  print(str(b))
else:
  print(str(100*(10-a)))
N,R=map(int, input().split())

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

if n < 10:
    print(100 * (10-r))
else:
    print(r)
a, b = list(map(int, input().split()))
if a >= 10:
  my_result = b
else:
  my_result = b - 100 * (10 - a)
print(my_result)
i = list(map(int, input().split()))
N = i[0]
R = i[1]
 
result = R if N >= 10 else R - 100 * (10 - N)
 
print(result)
n, r = map(int, input().split())
print(r+(10-n)*100)
data = input().split()
if int(data[0]) > 10:
  ans = data[1]
else:
  ans = int(data[1]) - 100 * (10 - int(data[0]))
 
print(ans)
N, R = map(int, input().split())
print(R if 10>=N else R+100*(10-N))
import sys
n,r = list(map(int, input().split()))
if n >= 10:
    print(n)
else:
    print(r + 100*(10-n))
n, k = map(int, input().split())
ans = 0
if n < 10:
  ans = 100*(10-n)+k
else:
  ans = k
print(k)
def E(N,R):
    K = 100*(10-N)
    if K < 0:
        M =R
        print(M)
    else:
        M = R +K
        print(M)
N,K = map(int,input().split())
N += 1
ans = 1
for i in range(1000000): 
	if K**(ans) < N:
		ans += 1
	else:
		print(ans)
		break
N,R = map(int,input().split())

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

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

input = stdin.readline
lmi = lambda: list(map(int, input().split()))
mi = lambda: map(int, input().split())
si = lambda: input().strip('\n')
ssi = lambda: input().strip('\n').split()


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

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

if N < 10:
    print(R + 100 * (10 - R))
else:print(R)
from sys import stdin,stdout
Pi = lambda x: stdout.write(str(x) + '\n')
S = lambda x: x*(x+1) // 2
R = lambda:stdin.readline()
Ri = lambda x:map(int,x.split())

def main():  	
	for x in stdin:
		a,b =  Ri(x)
		if a<10:a = 10 - a
		else:a = 10
		Pi(b+(100*a))
				
if __name__ == "__main__":
    main()
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(R)
  
else :
  print(100*(10-N))
import numpy as np

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

if n < 10:
    print(r + 1000 - 100*n)
else:
    print(r)
class E():
    def ee(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')
import sys

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

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

if __name__ ==  '__main__':
    main()
def check_trial(n):
  num = n.split()
  if int(num[0]) > 10:
    return True
  else:
    return False
def in_rating(n, result):
  if result:
    num = n.split()
    out_rating = int(num[1]) + 100*int(num[0])
    return out_rating
  else:
    num = n.split()
    out_rating = int(num[1]) + 100*(10-int(num[0]))
    return out_rating
def main():
  n=input()
  result = check_trial(n)
  print(in_rating(n, result))
main()
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(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 = map(int, input().split())
 
if N >= 10: print(R)
else: print(R - 100*(10-N))
def main():
  n, r = map(int,input().split())
  if n < 10:
    return r
  else:
    return 100 * (10 - n)

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

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

print(ans)
N , K = input().split()
print (100 * (10 - int(N)) + int(K))
n,r = map(int,input().split())
if n>=10:
  print(r)
else:
  print(r+100*(100-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())
if n >= 10:
  print(r)
else:
  print(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:
    ans = r
else:
    ans = r + 1000 - 100 * 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:
    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))
N,R=map(int,input().split())
if R>=10:
  a=N
else:
  a=100*(10-N)
print(a)
# -*- coding: utf-8 -*-
N,R = map(int,input().split())
if N >= 10:
    print(R)
else:
    print(int(R) - 100*(10-int(N)))
n, display_rating = list(map(int, input().split(" ")))

if n < 10:
  a = 100 * (10 - 2)
else:
  a = 0
print(display_rating + a)
deta = input().split()
n = deta[0]
r = deta[1]
if int(n)>=10:
    print(r)
else:
    rate = 100*(10-int(n))
    print(rate)
n, r = [int(i) for i in input().split(" ")]
print(r if n >= 10 else r - 100 * (10 - n))
[N, R] = [int(i) for i in input().split()]
ans = R + (100*(10-N))
print(ans)
N,R = sorted(map(int,input().split()))

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

if n >= 10:
    exit(0)
else:
    r = r + 100 * (10 - n)
    
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(int(100*(19-n)+r))
n, r = map(int,input().split())

if r<10:
  print(r + 100*(10-n))
else:
  print(r)
n, r = map(int, input().split())
if n < 10:
  print((r + 100*(10-r)))
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())
c=0
if N>=10:
  c=R
else:
  c=R+100*(10-c)
print(c)
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(r)
else:
  print(r - (100 * (10-r)))
m,n = map(int,input().split())
if m>=10:
    print(n)
else:
    print(n+(100-m))
i = list(map(int, input().split()))
N = i[0]
R = i[1]

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

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

if n == 0:
    print(0)
elif 0 < n >= 10:
    print(r)
else:
    print(r-(100*(10-n)))
N,R=map(int,input().split())
if N>=10:
  print(R)
else:
  print(R-N*100)
n,r=map(int,input().split())
rate=r if n>=10 else 100*(10-r)
print(r)
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-100*max(0,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())
ans=r

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

if a > 10:
    print(b)
else:
    print(b-100*(10 - a))
A = input().split( )

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

if N >= 10:
    print(R)

else :
    print(100*(10-N))
N,K=map(int,input().split())
print(K if N>=10 else 1000-100*K)
n,ans = str(input()).split()
if int(n)<10:
    ans = int(ans) - (100*(10-int(n)))
print(int(ans))
# -*- coding: utf-8 -*-
N,R = map(int, input().split())
if N <= 10:
	R = R - 100 * (10 - N )
     
print(R)
N, R = [int(_) for _ in input().split()]
if N >= 10:
    print(R)
else:
    print(100 * (10 - 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 if N >= 10 else R+N*100)
n,k = map(int,input().split())

if n >= 10:
  print(k)
else:
  print(100*(100-k))
inp=input().split()

n=int(inp[0])
r=int(inp[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 - r))
N,R=map(int,input().split())
if N>=10:
  print(R)
else:
  print(R+100*N)
n, r = map(int, input().split())
print(r if n >= 10 else r - 100 * (10 - n))
def E(N,R):
    if 1<= N <= 100 and 0<= R <= 4111:
        K = 100*(10-N)
        if K < 0:
            M =R
            print(M)
        else:
            M = R +K
            print(M)
    else:
        print('please input right numbers')
N, R = list(map(int, input().split()))

ans = R - 100 * max((10 - N), 0)
print(ans)
N, R = [int(x) for x in input().split(' ')]
if N < 10:
	print(R)
else:
	print(R + 100 * (10 - N))
n, r = map(int,input().split())

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

N = i[0]
R = i[1]

if N<= 10 :
  I = R

elif N >10 :
  I = R + 100*(10-N)

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

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

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

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

else :
    print(100*(10-N))
def main():

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

if __name__ == '__main__':
    print(main())
N,R = map(int,input().split())
if N <= 10:
    print(R)
else:
    print(R + 1000 -10*N)
l,n=map(int,input().split())
p=100*(10-l)
print(p+n)
def E(N,R):
    if 1<= N <= 100 and 0<= R <= 4111:
        K = 100*(10-N)
        if K < 0:
            M =R
            print(M)
        else:
            M = R + K
            print(M)
    else:
        print('please input right numbers')
from sys import stdin
s = stdin.readline().rstrip().split()
n, r = int(s[0]), int(s[1])
print(r+100*(10-n))
N, R = map(int, input().split(" "))

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

ans = R

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

print(ans)
a, m = map(int, input().split()) 
if a >=10:
  print(m)
else:
  out = m - 100 *(10-a)
  if out <= 1:
    print(1)
  else:
    print(out)
a, m = map(int, input().split()) 
if a >=10:
  print(m)
else:
  out = m - 100 *(10-a)
  print(out)
n,r=map(int,input().split())
  
if n<=10:
  print(100*(10-n))
else:
  print(r)
N,R = input().split()
N,R = int(N),int(R)
L = R
if N < 10:
    L=100*(10-N)
else:
    L = R

print(L)
#print(input())
N, DR = map(int, input().split())
# DR = IR - 100 * (10 - N)
# IR + 100 * (10 - N) = IR

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

if N >= 10:
  print(N)

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

y = k
cnt = 1
while n >= k:
    k *= y
    cnt += 1
print(cnt)
N,R = list(map(int, input().split()))
if R >= 10:
    print(R)
else:
    print(R-(100*(10-N)))
N,K = [int(i) for i in input().split()]
print(K-(100*(10-N)))
n,r=map(int,input().split())
if n>=10:
    print(r)
else:
    print(r-(100*(10-n)))
N,R = (int(x) for x in input().split())
if N>=10:
  print(R)
else:
  print(R-100*(10-N))
N,R=map(int,input().split())
u=0
if N>=10:
  u=R
else:
  u=R-100*(10-N)
print(u)
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:
    L =  R+100*(10-N)
    print('{}'.format(L))

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

if N > 10:
    print(R)
else:
    print(100 * (10 - N))
N, R = map(int, input().split())
print(R if N >= 10 else R - 100*(10-N))
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 = [int(x) for x in input().split(' ')]

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