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

cnt = 1
power = K

while power <= N:
    power *= K
    cnt += 1

print(cnt) 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 cnt = 1 cnt 1 power = K power K while power <= N:
    power *= K
    cnt += 1 power <= N power N power *= K power K cnt += 1 cnt 1 print(cnt) print cnt power = K K power cnt = 1 1 cnt cnt += 1 1 cnt N, K = list(map(int, input().split())) list(map(int, input().split())) N K = list(map(int, input().split())) list(map(int, input().split())) K power *= K K power
N, K = list(map(int, input().split()))

cnt = 1
power = K

while power <= N:
    power *= K
    cnt += 1

print(cnt)