object Main {
  def main(args:Array[String]) {
    val read = readLine()
    var N = read.split(' ')(0).toLong
    var K = read.split(' ')(1).toInt

    var count = 0
    while(K <= N) {
      N = N / K
      count = count + 1
    }
    println(count + 1)
  }
}
