n,k = list(map(int, input("").split()))
out=1
while n/k**out>=1:
    out+=1
print(out) 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 out=1 out 1 while n/k**out>=1:
    out+=1 n/k**out>=1 n/k**out n k**out k out 1 out+=1 out 1 print(out) print out k = list(map(int, input("").split())) list(map(int, input("").split())) k out+=1 1 out out=1 1 out n,k = list(map(int, input("").split())) list(map(int, input("").split())) n
n,k = list(map(int, input("").split()))
out=1
while n/k**out>=1:
    out+=1
print(out)