import java.util.*
fun main(args: Array<String>) {
  val (n, r) = readLine()!!.split(" ").map(String::toInt)
  var innerRating = 0
  if(n >= 10) {
    innerRating = r
  }
  else {
    innerRating = r + 100*(10 -n)
  }
  
  println(innerRating)
}