N,R = map(int,input().split())
print(R + 100*(10-N)) if N < 10 else print(R) N,R = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split R print(R + 100*(10-N)) if N < 10 else print(R) N < 10 N 10 print(R + 100*(10-N)) print R + 100*(10-N) R 100*(10-N) 100 10-N 10 N print(R) print R R = map(int,input().split()) map(int,input().split()) R N,R = map(int,input().split()) map(int,input().split()) N
N,R = map(int,input().split())
print(R + 100*(10-N)) if N < 10 else print(R)