import java.util.Scanner;

fun main (args : Array<String>) {
  val input = Scanner(System.`in`)
  
  while (input.hasNext()) {
    val N = input.nextInt()
    val R = input.nextInt()
    
    if (N >= 10) {
      println(R)
    } else {
      println(R + 100 * (10 - N))
    }
  }
}