n,r = input().split()
if int(n) >= 10:
    print(r)
else:
    k = (-int(r) - 100 * (10 - int(n) )) * -1
    print(k) n,r = input().split() n input().split() ().split () input split r if int(n) >= 10:
    print(r)
else:
    k = (-int(r) - 100 * (10 - int(n) )) * -1
    print(k) int(n) >= 10 int(n) int n 10 print(r) print r k = (-int(r) - 100 * (10 - int(n) )) * -1 k (-int(r) - 100 * (10 - int(n) )) * -1 -int(r) - 100 * (10 - int(n) ) -int(r) int(r) int r 100 * (10 - int(n) ) 100 10 - int(n) 10 int(n) int n -1 print(k) print k n,r = input().split() input().split() n k = (-int(r) - 100 * (10 - int(n) )) * -1 (-int(r) - 100 * (10 - int(n) )) * -1 k r = input().split() input().split() r
n,r = input().split()
if int(n) >= 10:
    print(r)
else:
    k = (-int(r) - 100 * (10 - int(n) )) * -1
    print(k)
