fun main(arr: Array<String>) {
    val (n,k)= readLine()!!.split(" ").map { it.toInt() }
    var current = n
    var ans = 1
    while (current >= k) {
        ans++
        current /= k
    }
    println(ans)
}
