fun main (args:Array<String>){
    val (powerSocket,slot)  = readLine()!!.split(" ").map(String::toInt)
    var outlet = 1
    var ans = 0
    while(outlet < slot){
        outlet--
        outlet += powerSocket
        ans++
    }
    print(ans)
}