N, K = map(int, input().split())
for i in range(1000000):
    if K ** (i - 1) <= N < K ** i:
        print(i)
        break N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K for i in range(1000000):
    if K ** (i - 1) <= N < K ** i:
        print(i)
        break i range(1000000) range 1000000 if K ** (i - 1) <= N < K ** i:
        print(i)
        break K ** (i - 1) <= N < K ** i K ** (i - 1) <= N K ** (i - 1) K i - 1 i 1 N K ** i K i print(i) print i break N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K
N, K = map(int, input().split())
for i in range(1000000):
    if K ** (i - 1) <= N < K ** i:
        print(i)
        break
