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

Sum = 0

while True:
    Sum += 1

    if K ** Sum > N:
        break

print(Sum) N,K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K Sum = 0 Sum 0 while True:
    Sum += 1

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

Sum = 0

while True:
    Sum += 1

    if K ** Sum > N:
        break

print(Sum)