import scala.io.StdIn._

object Main extends App {


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

  def solve(): Int = {
    var digit = 0
    var num = n
    while(num > 0) {
      num /= k
      digit += 1
    }
    digit
  }

  println(solve())

}

