function Main(input) {
	var input = input.split(" ");
	var n = parseInt(input[0]);
	var r = parseInt(input[1]);
	var rate = 0;

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