INT_MAX=10**18+7
x=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]
GETA=123
###############################################################################
n,r=INPUT()
if n>=10:
    print(r)
else:
    print(r+100*(10-n)) INT_MAX=10**18+7 INT_MAX 10**18+7 10**18 10 18 7 x=10**9+7 x 10**9+7 10**9 10 9 7 def INPUT():return list(int(i) for i in input().split()) INPUT 0 for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) 0 def LIST_1D_ARRAY(n):return [0 for _ in range(n)] LIST_1D_ARRAY n n [0 for _ in range(n)]for _ in range(m) for _ in range(m) _ range(m) range m for _ in range(m) [0 for _ in range(n)] def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)] LIST_2D_ARRAY m m n n GETA=123 GETA 123 n,r=INPUT() n INPUT() INPUT r if n>=10:
    print(r)
else:
    print(r+100*(10-n)) n>=10 n 10 print(r) print r print(r+100*(10-n)) print r+100*(10-n) r 100*(10-n) 100 10-n 10 n GETA=123 123 GETA def INPUT():return list(int(i) for i in input().split()) def INPUT():return list(int(i) for i in input().split()) INPUT n,r=INPUT() INPUT() n INT_MAX=10**18+7 10**18+7 INT_MAX def LIST_1D_ARRAY(n):return [0 for _ in range(n)] def LIST_1D_ARRAY(n):return [0 for _ in range(n)] LIST_1D_ARRAY r=INPUT() INPUT() r def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)] def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)] LIST_2D_ARRAY x=10**9+7 10**9+7 x
INT_MAX=10**18+7
x=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]
GETA=123
###############################################################################
n,r=INPUT()
if n>=10:
    print(r)
else:
    print(r+100*(10-n))
