import io.StdIn._

object Main extends App {

  val line = readLine.split(" ").map(_.toInt)
  val N = line(0)
  val R = line(1)

  val A = if (N < 10) {
    R + (100 * (10 - N))
  } else R

  println(A)
}
