n, r = map(int,input().split())

i=1
rr=r
while rr <= n:
    i+=1
    rr=rr*r
print(i) n, r = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split r i=1 i 1 rr=r rr r while rr <= n:
    i+=1
    rr=rr*r rr <= n rr n i+=1 i 1 rr=rr*r rr rr*r rr r print(i) print i n, r = map(int,input().split()) map(int,input().split()) n r = map(int,input().split()) map(int,input().split()) r rr=r r rr i+=1 1 i i=1 1 i rr=rr*r rr*r rr
n, r = map(int,input().split())

i=1
rr=r
while rr <= n:
    i+=1
    rr=rr*r
print(i)
