N,K=map(int,input().split())
n=1
while 1:
  if N<K**n:break
  n+=1
print(n) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K n=1 n 1 while 1:
  if N<K**n:break
  n+=1 1 if N<K**n:break
   N<K**n N K**n K n n+=1 n 1 print(n) print n n=1 1 n K=map(int,input().split()) map(int,input().split()) K N,K=map(int,input().split()) map(int,input().split()) N n+=1 1 n
N,K=map(int,input().split())
n=1
while 1:
  if N<K**n:break
  n+=1
print(n)