'use strict';
function main(input) {
  input = input.split(" ");
  const a = parseInt(input[0], 10);
  const b = parseInt(input[1], 10);

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

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