import java.util.*

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

    var ans = K
    var cnt = 1
    while(N>=ans){
        ans *=  K
        cnt++
    }

    println(cnt)
}