fun main(args: Array<String>) {
    val input: List<String> = readLine()!!.trim().split(" ").map{it.trim()}
    val n = input.get(0).toInt()
    val r = input.get(1).toInt()
    if (n >= 10) {
        print(r)
    } else {
        print(r + 100 * (10 - n))
    }
}
