n,k=input().split()
n=int(n)
k=int(k)
count=0

while n>0:
  n=n//k
  count=count+1
  
print(count) n,k=input().split() n input().split() ().split () input split k n=int(n) n int(n) int n k=int(k) k int(k) int k count=0 count 0 while n>0:
  n=n//k
  count=count+1
   n>0 n 0 n=n//k n n//k n k count=count+1 count count+1 count 1 print(count) print count k=int(k) int(k) k n=n//k n//k n count=count+1 count+1 count n,k=input().split() input().split() n k=input().split() input().split() k count=0 0 count n=int(n) int(n) n
n,k=input().split()
n=int(n)
k=int(k)
count=0

while n>0:
  n=n//k
  count=count+1
  
print(count)