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

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

cnt = 0
while N:
    N //= K
    cnt += 1
print(cnt)