n,k=map(int,input().split())

count=1
subk=k

while subk<=n:
  subk*=k
  count+=1
  
print(count) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k count=1 count 1 subk=k subk k while subk<=n:
  subk*=k
  count+=1
   subk<=n subk n subk*=k subk k count+=1 count 1 print(count) print count n,k=map(int,input().split()) map(int,input().split()) n k=map(int,input().split()) map(int,input().split()) k subk=k k subk count=1 1 count count+=1 1 count subk*=k k subk
n,k=map(int,input().split())

count=1
subk=k

while subk<=n:
  subk*=k
  count+=1
  
print(count)