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