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

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