N, R = [int(i) for i in input().split(' ')]

N = min(10,N)

print(R + 100*(10-N)) int(i) for i in input().split(' ') for i in input().split(' ') i input().split(' ') ().split () input split ' ' for i in input().split(' ') int(i) int i N, R = [int(i) for i in input().split(' ')] N [int(i) for i in input().split(' ')] R N = min(10,N) N min(10,N) min 10 N print(R + 100*(10-N)) print R + 100*(10-N) R 100*(10-N) 100 10-N 10 N N = min(10,N) min(10,N) N N, R = [int(i) for i in input().split(' ')] [int(i) for i in input().split(' ')] N R = [int(i) for i in input().split(' ')] [int(i) for i in input().split(' ')] R
N, R = [int(i) for i in input().split(' ')]

N = min(10,N)

print(R + 100*(10-N))