object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt()
    val k = sc.nextInt()

    var idx = 1

    while (n >= Math.pow(k, idx)) {
      idx = idx + 1
    }

    val ans = idx

    println(ans)
  }
}
