N,K=map(int,input().split())
result=1
while N>=K:
  N=int(N/K)
  result+=1
print(result) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K result=1 result 1 while N>=K:
  N=int(N/K)
  result+=1 N>=K N K N=int(N/K) N int(N/K) int N/K N K result+=1 result 1 print(result) print result result=1 1 result result+=1 1 result N=int(N/K) int(N/K) N N,K=map(int,input().split()) map(int,input().split()) N K=map(int,input().split()) map(int,input().split()) K
N,K=map(int,input().split())
result=1
while N>=K:
  N=int(N/K)
  result+=1
print(result)