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