N,K = map(int, input().split())
z = 1
cnt = 0
while z <= N:
    z *= K
    cnt += 1
print(cnt) N,K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K z = 1 z 1 cnt = 0 cnt 0 while z <= N:
    z *= K
    cnt += 1 z <= N z N z *= K z K cnt += 1 cnt 1 print(cnt) print cnt K = map(int, input().split()) map(int, input().split()) K N,K = map(int, input().split()) map(int, input().split()) N z = 1 1 z z *= K K z cnt += 1 1 cnt cnt = 0 0 cnt
N,K = map(int, input().split())
z = 1
cnt = 0
while z <= N:
    z *= K
    cnt += 1
print(cnt)