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