N , K = input().split()
if (int(N) <= 10) :
    print (100 * (10 - int(N)) + int(K))
else :
    print (K) N , K = input().split() N input().split() ().split () input split K if (int(N) <= 10) :
    print (100 * (10 - int(N)) + int(K))
else :
    print (K) int(N) <= 10 int(N) int N 10 print (100 * (10 - int(N)) + int(K)) print 100 * (10 - int(N)) + int(K) 100 * (10 - int(N)) 100 10 - int(N) 10 int(N) int N int(K) int K print (K) print K K = input().split() input().split() K N , K = input().split() input().split() N
N , K = input().split()
if (int(N) <= 10) :
    print (100 * (10 - int(N)) + int(K))
else :
    print (K)