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