n,r = map(int,input().split())
if n >= 10 :
    print(r)
else :
    k = n
    x = r+100*(10-k)
    print(x) n,r = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split r if n >= 10 :
    print(r)
else :
    k = n
    x = r+100*(10-k)
    print(x) n >= 10 n 10 print(r) print r k = n k n x = r+100*(10-k) x r+100*(10-k) r 100*(10-k) 100 10-k 10 k print(x) print x k = n n k x = r+100*(10-k) r+100*(10-k) x 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())
if n >= 10 :
    print(r)
else :
    k = n
    x = r+100*(10-k)
    print(x)