import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val n = sc.nextInt()
  val r = sc.nextInt()
  
  if (n > 10) println(r)
  else
    println(r + 100 * (10 - n))
}
