n, r = map(int, input().split())
ans = r + max(0, 100 * (10 - n))
print(ans) n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r ans = r + max(0, 100 * (10 - n)) ans r + max(0, 100 * (10 - n)) r max(0, 100 * (10 - n)) max 0 100 * (10 - n) 100 10 - n 10 n print(ans) print ans r = map(int, input().split()) map(int, input().split()) r n, r = map(int, input().split()) map(int, input().split()) n ans = r + max(0, 100 * (10 - n)) r + max(0, 100 * (10 - n)) ans
n, r = map(int, input().split())
ans = r + max(0, 100 * (10 - n))
print(ans)
