import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

N, R = mapint()
if N>=10:
    print(R)
else:
    print(R+100*(10-N)) import sys sys def input(): return sys.stdin.readline().strip() input def mapint(): return map(int, input().split()) mapint sys.setrecursionlimit(10**9) sys.setrecursionlimit sys setrecursionlimit 10**9 10 9 N, R = mapint() N mapint() mapint 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 def mapint(): return map(int, input().split()) def mapint(): return map(int, input().split()) mapint def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input N, R = mapint() mapint() N R = mapint() mapint() R
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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