const fs = require("fs");

function main(input) {
  const tmp = input.split(" ").map(v => parseInt(v));
  const n = tmp[0];
  const r = tmp[1];
  console.log(process(n, r));
}

function process(n, r) {
  if (n > 10)
    return r;
  return r + 100 * (10 - n);
}

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