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