import numpy as np

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

if n < 10:
    print(r + 1000 - 100*n)
else:
    print(r) import numpy as np numpy n,r = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split r if n < 10:
    print(r + 1000 - 100*n)
else:
    print(r) n < 10 n 10 print(r + 1000 - 100*n) print r + 1000 - 100*n r + 1000 r 1000 100*n 100 n print(r) print r r = map(int,input().split()) map(int,input().split()) r n,r = map(int,input().split()) map(int,input().split()) n
import numpy as np

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

if n < 10:
    print(r + 1000 - 100*n)
else:
    print(r)