process.stdin.resume();
process.stdin.setEncoding('utf8');

var lines = []
var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', (line) => {
  lines.push(line);
});

reader.on('close', () => {
  const [n, r] = lines[0].split(' ').map(v=>Number(v));
  if (n < 10) {
    console.log(r);
  } else {
    console.log(r - 100 * (10 - n));
  }
});
