import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())


N,R = MI()
print(R if N >= 10 else R+100*(10-N)) import sys sys def MI(): return map(int,sys.stdin.readline().rstrip().split()) MI N,R = MI() N MI() MI R print(R if N >= 10 else R+100*(10-N)) print R if N >= 10 else R+100*(10-N) N >= 10 N 10 R R+100*(10-N) R 100*(10-N) 100 10-N 10 N N,R = MI() MI() N R = MI() MI() R def MI(): return map(int,sys.stdin.readline().rstrip().split()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) MI
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())


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