def solve():
    n, r = map(int, input().split())
    return r + max(0, 100 * (10-n))

print(solve()) def solve():
    n, r = map(int, input().split())
    return r + max(0, 100 * (10-n)) solve n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r return r + max(0, 100 * (10-n)) r + max(0, 100 * (10-n)) r max(0, 100 * (10-n)) max 0 100 * (10-n) 100 10-n 10 n print(solve()) print solve() solve def solve():
    n, r = map(int, input().split())
    return r + max(0, 100 * (10-n)) def solve():
    n, r = map(int, input().split())
    return r + max(0, 100 * (10-n)) solve
def solve():
    n, r = map(int, input().split())
    return r + max(0, 100 * (10-n))

print(solve())