x = input()
count = int(x.split()[0])
num = int(x.split()[1])

if count < 10:
    num = num + (100 * (10 - count))
else:
    num

print(num) x = input() x input() input count = int(x.split()[0]) count int(x.split()[0]) int x.split()[0] x.split() x.split x split 0 num = int(x.split()[1]) num int(x.split()[1]) int x.split()[1] x.split() x.split x split 1 if count < 10:
    num = num + (100 * (10 - count))
else:
    num count < 10 count 10 num = num + (100 * (10 - count)) num num + (100 * (10 - count)) num 100 * (10 - count) 100 10 - count 10 count num print(num) print num x = input() input() x num = int(x.split()[1]) int(x.split()[1]) num num = num + (100 * (10 - count)) num + (100 * (10 - count)) num count = int(x.split()[0]) int(x.split()[0]) count
x = input()
count = int(x.split()[0])
num = int(x.split()[1])

if count < 10:
    num = num + (100 * (10 - count))
else:
    num

print(num)