n, r  =  map(int,input().split())

rate = max(r+100*(10-n),r)

print(rate)
 n, r  =  map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split r rate = max(r+100*(10-n),r) rate max(r+100*(10-n),r) max r+100*(10-n) r 100*(10-n) 100 10-n 10 n r print(rate) print rate n, r  =  map(int,input().split()) map(int,input().split()) n rate = max(r+100*(10-n),r) max(r+100*(10-n),r) rate r  =  map(int,input().split()) map(int,input().split()) r
n, r  =  map(int,input().split())

rate = max(r+100*(10-n),r)

print(rate)

