function main(input) {
  let args = input.split(' ');
  let n = parseInt(args[0], 10);
  let r = parseInt(args[1], 10);
  let hiddenRating;
  if ( n >= 10) {
    hiddenRating = r;
  } else {
    let argument = 100*(10 - n);
    hiddenRating = r + argument;
  }
  return hiddenRating;
}


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