def L():
  return list(map(int, input().split()))
import math
[n,k]=L()

print(math.floor(math.log(n,k))+1) def L():
  return list(map(int, input().split())) L return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split import math math [n,k]=L() [n,k] n k L() L print(math.floor(math.log(n,k))+1) print math.floor(math.log(n,k))+1 math.floor(math.log(n,k)) math.floor math floor math.log(n,k) math.log math log n k 1 def L():
  return list(map(int, input().split())) def L():
  return list(map(int, input().split())) L
def L():
  return list(map(int, input().split()))
import math
[n,k]=L()

print(math.floor(math.log(n,k))+1)