combined = input().split(" ")
n = int(combined[0])
r = int(combined[1])

if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n)) combined = input().split(" ") combined input().split(" ") ().split () input split " " n = int(combined[0]) n int(combined[0]) int combined[0] combined 0 r = int(combined[1]) r int(combined[1]) int combined[1] combined 1 if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n)) n >= 10 n 10 print(r) print r print(r + 100 * (10 - n)) print r + 100 * (10 - n) r 100 * (10 - n) 100 10 - n 10 n n = int(combined[0]) int(combined[0]) n r = int(combined[1]) int(combined[1]) r combined = input().split(" ") input().split(" ") combined
combined = input().split(" ")
n = int(combined[0])
r = int(combined[1])

if n >= 10:
    print(r)
else:
    print(r + 100 * (10 - n))
