[n, k] = [int(i) for i in input().split()]
for i in range(40):
    if n < k**i:
        print(i)
        break int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i [n, k] = [int(i) for i in input().split()] [n, k] n k [int(i) for i in input().split()] for i in range(40):
    if n < k**i:
        print(i)
        break i range(40) range 40 if n < k**i:
        print(i)
        break n < k**i n k**i k i print(i) print i break
[n, k] = [int(i) for i in input().split()]
for i in range(40):
    if n < k**i:
        print(i)
        break