n, r = map(int, input().split())
print(r if n >= 10 else r + 1000 - (100 * n)) n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r print(r if n >= 10 else r + 1000 - (100 * n)) print r if n >= 10 else r + 1000 - (100 * n) n >= 10 n 10 r r + 1000 - (100 * n) r + 1000 r 1000 100 * n 100 n r = map(int, input().split()) map(int, input().split()) r n, r = map(int, input().split()) map(int, input().split()) n
n, r = map(int, input().split())
print(r if n >= 10 else r + 1000 - (100 * n))
