n, r = map(int, input().split())

if n > 9:
    print(r)
else:
    print(r - 100*n + 1000) n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r if n > 9:
    print(r)
else:
    print(r - 100*n + 1000) n > 9 n 9 print(r) print r print(r - 100*n + 1000) print r - 100*n + 1000 r - 100*n r 100*n 100 n 1000 n, r = map(int, input().split()) map(int, input().split()) n r = map(int, input().split()) map(int, input().split()) r
n, r = map(int, input().split())

if n > 9:
    print(r)
else:
    print(r - 100*n + 1000)