function main(input) {
    const args = input.split(' ');
    var n = parseInt(args[0], 10);
    const r = parseInt(args[1], 10);

  	if (n >= 10) n = 10;
    console.log(r + 100 * (10 - n));
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));
