n,k=list(map(int,input().split()))
if(n>=10):
    print(int(k))
    
else:
    rating =k + 1000 - 100*n
    print(rating) n,k=list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split k if(n>=10):
    print(int(k))
    
else:
    rating =k + 1000 - 100*n
    print(rating) n>=10 n 10 print(int(k)) print int(k) int k rating =k + 1000 - 100*n rating k + 1000 - 100*n k + 1000 k 1000 100*n 100 n print(rating) print rating k=list(map(int,input().split())) list(map(int,input().split())) k rating =k + 1000 - 100*n k + 1000 - 100*n rating n,k=list(map(int,input().split())) list(map(int,input().split())) n
n,k=list(map(int,input().split()))
if(n>=10):
    print(int(k))
    
else:
    rating =k + 1000 - 100*n
    print(rating)