import scala.io.StdIn._

object Main extends App {


  val Array(n, k) = readLine().split(" ").map(_.toInt)

  def solve() = {
    var cnt = 1
    var num = 1L
    while(num * k < n) {
      num *= k
      cnt +=1
    }
    cnt
  }

  println(solve())

}

