const main = stdin => {
  const [N, R] = stdin.trim().split(' ').map(x => parseInt(x))
  if (N >= 10) {
    console.log(N)
  } else {
    console.log(R + 100 * (10 - N))
  }
}

// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
