a, s = map(int, input().split())
if a < 10:
    print(s + 100 * (10 - a))
else:
    print(s) a, s = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split s if a < 10:
    print(s + 100 * (10 - a))
else:
    print(s) a < 10 a 10 print(s + 100 * (10 - a)) print s + 100 * (10 - a) s 100 * (10 - a) 100 10 - a 10 a print(s) print s s = map(int, input().split()) map(int, input().split()) s a, s = map(int, input().split()) map(int, input().split()) a
a, s = map(int, input().split())
if a < 10:
    print(s + 100 * (10 - a))
else:
    print(s)