import sys
from collections import Counter
from collections import deque
import math
import fractions
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

n,r=mp()
if n>=10:
    print(r)
else:
    print(100*(10-n)+r) import sys sys from collections import Counter from collections import deque import math math import fractions fractions def input(): return sys.stdin.readline().strip() input def mp(): return map(int,input().split()) mp def lmp(): return list(map(int,input().split())) lmp n,r=mp() n mp() mp r if n>=10:
    print(r)
else:
    print(100*(10-n)+r) n>=10 n 10 print(r) print r print(100*(10-n)+r) print 100*(10-n)+r 100*(10-n) 100 10-n 10 n r def mp(): return map(int,input().split()) def mp(): return map(int,input().split()) mp def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input n,r=mp() mp() n r=mp() mp() r def lmp(): return list(map(int,input().split())) def lmp(): return list(map(int,input().split())) lmp
import sys
from collections import Counter
from collections import deque
import math
import fractions
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

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