fun main(args: Array<String>) {
    val (n, k) = readLine()?.split(" ")?.map(String::toInt) ?: return
    var count = 1
    var total = k
    while (n >= total) {
        count++
        total *= k
    }
    println(count)
}
