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

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

print(i+1)
