N,K =map(int,input().split())

count=0
while 1:
    if N//(K**count)==0:
        break
    count +=1
print(count)     N,K =map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K count=0 count 0 while 1:
    if N//(K**count)==0:
        break
    count +=1 1 if N//(K**count)==0:
        break
     N//(K**count)==0 N//(K**count) N K**count K count 0 break count +=1 count 1 print(count) print count count=0 0 count N,K =map(int,input().split()) map(int,input().split()) N count +=1 1 count K =map(int,input().split()) map(int,input().split()) K
N,K =map(int,input().split())

count=0
while 1:
    if N//(K**count)==0:
        break
    count +=1
print(count)    
