N,K=map(int,input().split())
num=0
while N>=K:
    N=N//K
    num+=1
print(num+1) N,K=map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K num=0 num 0 while N>=K:
    N=N//K
    num+=1 N>=K N K N=N//K N N//K N K num+=1 num 1 print(num+1) print num+1 num 1 N,K=map(int,input().split()) map(int,input().split()) N num=0 0 num N=N//K N//K N K=map(int,input().split()) map(int,input().split()) K num+=1 1 num
N,K=map(int,input().split())
num=0
while N>=K:
    N=N//K
    num+=1
print(num+1)