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