function main(input){
    input = input.split(" ").map(Number);
    if(input[0] >= 10){
        console.log(input[1]);
    }else{
        console.log(input[1] + 100 * (10 - input[0]))
    }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));