var fs = require("fs");

var input = fs.readFileSync("/dev/stdin", "utf8").split(" ");

var n = +input[0];
var r = +input[1];

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