N,K=map(int,input().split())
print(K if N>=10 else K+(1000-100*N)) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K print(K if N>=10 else K+(1000-100*N)) print K if N>=10 else K+(1000-100*N) N>=10 N 10 K K+(1000-100*N) K 1000-100*N 1000 100*N 100 N N,K=map(int,input().split()) map(int,input().split()) N K=map(int,input().split()) map(int,input().split()) K
N,K=map(int,input().split())
print(K if N>=10 else K+(1000-100*N))