N, K = map(int, input().split())
count = 1

while N >= K:
  N //= 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 while N >= K:
  N //= K
  count +=1
   N >= K N K N //= K N K count +=1 count 1 print(count) print count N //= K K N N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K count = 1 1 count count +=1 1 count
N, K = map(int, input().split())
count = 1

while N >= K:
  N //= K
  count +=1
  
print(count)