function main(input) {
  input = input.split(" ");
  var n = parseInt(input[0], 10);
  var r = parseInt(input[1], 10);

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

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