function Main(input) {
  var line = input.split(' ');
  var N = Number(line[0]);
  var R = Number(line[1]);
  if (10 <= N) {
    console.log(R);
  } else {
    var internalRating = R + 100 * (10 - N);
    console.log(internalRating);
  }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
