import java.util.*

fun main(args: Array<String>) {
    val scn = Scanner(System.`in`)
    val N = scn.nextInt()
    val R = scn.nextInt()

    if(N>=10){
        println(R)
        return
    }

    var ans = 0
    ans =  R+ 100*(10-N)
    println(ans)
}