n,k=map(int,input().split())
i=0

while n>=k**i:
  i=i+1
print(i) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k i=0 i 0 while n>=k**i:
  i=i+1 n>=k**i n k**i k i i=i+1 i i+1 i 1 print(i) print i i=0 0 i n,k=map(int,input().split()) map(int,input().split()) n i=i+1 i+1 i k=map(int,input().split()) map(int,input().split()) k
n,k=map(int,input().split())
i=0

while n>=k**i:
  i=i+1
print(i)