n,r = map(int, input().split())
if n < 10:
    k = 100*(10-n)
    s = r + k
else:
    s = r
print(s) n,r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r if n < 10:
    k = 100*(10-n)
    s = r + k
else:
    s = r n < 10 n 10 k = 100*(10-n) k 100*(10-n) 100 10-n 10 n s = r + k s r + k r k s = r s r print(s) print s s = r + k r + k s s = r r s n,r = map(int, input().split()) map(int, input().split()) n k = 100*(10-n) 100*(10-n) k r = map(int, input().split()) map(int, input().split()) r
n,r = map(int, input().split())
if n < 10:
    k = 100*(10-n)
    s = r + k
else:
    s = r
print(s)