fun main(arr: Array<String>) {
    println(readLine()!!.split(" ").map { it.toLong() }.let { getAns(it[0], it[1].toInt()) })
}

fun getAns(num:Long, base:Int):Int {
    var n = base.toLong()
    var ans = 1
    while (num >= n) {
        n*=base
        ans++
    }
    return ans
}