'use strict'

function Main(input) {
  input = input.trim().split(' ').map(s => parseInt(s))

  const N = input[0]
  const R = input[1]

  if (N < 10) {
    console.log(R + 100 * (10 - N))
  } else {
    console.log(R)
  }
  
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
