object Main {
  def main(args:Array[String]) {
    val read = readLine()
    val N = read.split(' ')(0).toInt
    val R = read.split(' ')(1).toInt

    var alpha = 0
    if(N <= 10) alpha = 100 * (10 - N)
    println(R + alpha)
  }
}

