n, m = map(int, open(0).read().split())
if n < 10:
    print(m+100*(10-n))
else:
    print(m) n, m = map(int, open(0).read().split()) n map(int, open(0).read().split()) map int open(0).read().split() (0).read().split (0).read() (0).read (0) open 0 read split m if n < 10:
    print(m+100*(10-n))
else:
    print(m) n < 10 n 10 print(m+100*(10-n)) print m+100*(10-n) m 100*(10-n) 100 10-n 10 n print(m) print m m = map(int, open(0).read().split()) map(int, open(0).read().split()) m n, m = map(int, open(0).read().split()) map(int, open(0).read().split()) n
n, m = map(int, open(0).read().split())
if n < 10:
    print(m+100*(10-n))
else:
    print(m)