N, K = list(map(int, input().split()))
num = K
count = 1
while num <= N:
    num *= K
    count += 1
print(count) N, K = list(map(int, input().split())) N list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split K num = K num K count = 1 count 1 while num <= N:
    num *= K
    count += 1 num <= N num N num *= K num K count += 1 count 1 print(count) print count N, K = list(map(int, input().split())) list(map(int, input().split())) N count += 1 1 count num *= K K num count = 1 1 count K = list(map(int, input().split())) list(map(int, input().split())) K num = K K num
N, K = list(map(int, input().split()))
num = K
count = 1
while num <= N:
    num *= K
    count += 1
print(count)