def main():
  n,k = list(map(int,input().split()))
  ans=0
  while n>0:
    ans+=1
    n=int(n/k)
  print(ans)
main() def main():
  n,k = list(map(int,input().split()))
  ans=0
  while n>0:
    ans+=1
    n=int(n/k)
  print(ans) main n,k = list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split k ans=0 ans 0 while n>0:
    ans+=1
    n=int(n/k)
   n>0 n 0 ans+=1 ans 1 n=int(n/k) n int(n/k) int n/k n k print(ans) print ans main() main def main():
  n,k = list(map(int,input().split()))
  ans=0
  while n>0:
    ans+=1
    n=int(n/k)
  print(ans) def main():
  n,k = list(map(int,input().split()))
  ans=0
  while n>0:
    ans+=1
    n=int(n/k)
  print(ans) main
def main():
  n,k = list(map(int,input().split()))
  ans=0
  while n>0:
    ans+=1
    n=int(n/k)
  print(ans)
main()