function main(arg){
	let [n,r] = arg.trim("").split(" ").map(Number);
	
	if (n >= 10){
		console.log(r);
	}else{
		console.log(r+100*(10-n));
	}
}
main(require('fs').readFileSync('/dev/stdin','utf-8'));
