import sys
N,R = map(int,input().split())

if not ( 1 <= N <= 100 and 0 <= R <= 4111 ): sys.exit()

print(R) if N >= 10 else print(R + 100*(10-N)) import sys sys N,R = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split R if not ( 1 <= N <= 100 and 0 <= R <= 4111 ): sys.exit() not ( 1 <= N <= 100 and 0 <= R <= 4111 ) 1 <= N <= 100 and 0 <= R <= 4111 1 <= N <= 100 1 <= N 1 N 100 0 <= R <= 4111 0 <= R 0 R 4111 print(R) if N >= 10 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 N,R = map(int,input().split()) map(int,input().split()) N R = map(int,input().split()) map(int,input().split()) R
import sys
N,R = map(int,input().split())

if not ( 1 <= N <= 100 and 0 <= R <= 4111 ): sys.exit()

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