n, k = map(int, input().split())
count = 0
res = []
while True:
    if n < k ** count:
        print(count)
        break
    count += 1 n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k count = 0 count 0 res = [] res [] while True:
    if n < k ** count:
        print(count)
        break
    count += 1 True if n < k ** count:
        print(count)
        break
     n < k ** count n k ** count k count print(count) print count break count += 1 count 1 n, k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k res = [] [] res count = 0 0 count count += 1 1 count
n, k = map(int, input().split())
count = 0
res = []
while True:
    if n < k ** count:
        print(count)
        break
    count += 1
