n, k = map(int, input().split())
ret = 1
while n // k != 0:
    ret += 1
    n = n // k
print(ret) n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k ret = 1 ret 1 while n // k != 0:
    ret += 1
    n = n // k n // k != 0 n // k n k 0 ret += 1 ret 1 n = n // k n n // k n k print(ret) print ret ret += 1 1 ret n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k n = n // k n // k n ret = 1 1 ret
n, k = map(int, input().split())
ret = 1
while n // k != 0:
    ret += 1
    n = n // k
print(ret)