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

i = 0
while True:
    i += 1
    if N // K ** i == 0:
        break
print(i) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K i = 0 i 0 while True:
    i += 1
    if N // K ** i == 0:
        break True i += 1 i 1 if N // K ** i == 0:
        break N // K ** i == 0 N // K ** i N K ** i K i 0 break print(i) print i i = 0 0 i N, K = map(int, input().split()) map(int, input().split()) N i += 1 1 i K = map(int, input().split()) map(int, input().split()) K
N, K = map(int, input().split())

i = 0
while True:
    i += 1
    if N // K ** i == 0:
        break
print(i)
