N, K = map(int, input().split())
answer = 0
while N // (K ** answer) >= 1:
    answer += 1
print(answer) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K answer = 0 answer 0 while N // (K ** answer) >= 1:
    answer += 1 N // (K ** answer) >= 1 N // (K ** answer) N K ** answer K answer 1 answer += 1 answer 1 print(answer) print answer N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K answer = 0 0 answer answer += 1 1 answer
N, K = map(int, input().split())
answer = 0
while N // (K ** answer) >= 1:
    answer += 1
print(answer)