const main = arg => {
  const n = parseInt(arg.split(' ')[0], 10)
  const r = parseInt(arg.split(' ')[1], 10)
  if (n >= 10) {
    console.log(r)
  } else {
    console.log(r + 100 * (10 - n))
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf-8'))
