fun main(args: Array<String>) {
    val (sankaCount, hyojiRating) = readLine()!!.trim().split(' ').map {it.toInt()}

    val naibuRating = if (sankaCount >= 10) {
        hyojiRating
    } else {
        hyojiRating + 100 * (10 - sankaCount)
    }

    println(naibuRating)
}