N,K=input().split()
N=int(N)
K=int(K)
count=0
while N>0:
  count=count+1
  N=N//K
  
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:
  count=count+1
  N=N//K
   N>0 N 0 count=count+1 count count+1 count 1 N=N//K N N//K N K print(count) print count N=int(N) int(N) N count=count+1 count+1 count K=input().split() input().split() K N=N//K N//K N K=int(K) int(K) K N,K=input().split() input().split() N count=0 0 count
N,K=input().split()
N=int(N)
K=int(K)
count=0
while N>0:
  count=count+1
  N=N//K
  
print(count)