n,k = map(int,input().split())
count = 1
while k<=n:
    n //= k
    count += 1
print(count) n,k = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k count = 1 count 1 while k<=n:
    n //= k
    count += 1 k<=n k n n //= k n k count += 1 count 1 print(count) print count k = map(int,input().split()) map(int,input().split()) k count += 1 1 count n,k = map(int,input().split()) map(int,input().split()) n n //= k k n count = 1 1 count
n,k = map(int,input().split())
count = 1
while k<=n:
    n //= k
    count += 1
print(count)