n, k = map(int,input().split())
count = 0
while True:
  n = n//k
  count += 1
  if n <1:
    break
    
    
print(count) n, k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k count = 0 count 0 while True:
  n = n//k
  count += 1
  if n <1:
    break
    
     True n = n//k n n//k n k count += 1 count 1 if n <1:
    break
    
     n <1 n 1 break print(count) print count count = 0 0 count n, k = map(int,input().split()) map(int,input().split()) n count += 1 1 count k = map(int,input().split()) map(int,input().split()) k n = n//k n//k n
n, k = map(int,input().split())
count = 0
while True:
  n = n//k
  count += 1
  if n <1:
    break
    
    
print(count)