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