function Main(input) {
	var tmp = input.split(" ");
	var k = parseInt(tmp[0], 10);
	var r = parseInt(tmp[1], 10);
	if(k > 10){
    	k = 10;
    }
	console.log(r+(10-k)*100);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));