import scala.io.StdIn._

object Main extends App {


  val Array(n, r) = readLine().split(" ").map(_.toInt)

  def solve(): Int = {
    if(n < 10) r + (100 * (10 - n)) else r
  }

  println(solve())

}

