function Main(prm) {
    var n = parseInt(prm.split(' ')[0], 10);
    var r = parseInt(prm.split(' ')[1], 10);

    if(n>=10){
        console.log(r);
    } else {
        console.log(r+(100*(10-n)));
    }
}
Main(require('fs').readFileSync('/dev/stdin','utf8'));
