n, r = map(int, input().split())
print(r + 100 * (10 - min(n, 10))) n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r print(r + 100 * (10 - min(n, 10))) print r + 100 * (10 - min(n, 10)) r 100 * (10 - min(n, 10)) 100 10 - min(n, 10) 10 min(n, 10) min n 10 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 + 100 * (10 - min(n, 10)))
