n, k = map(int, input().split())
for i in range(10 ** 9):
    if n < k ** i:
        print(i)
        exit()

35426eb9bc57469837e39b7f257518a254062831
<mask token>

<mask token>
for i in range(10 ** 9):
    if n < k ** i:
        print(i)
        exit()

n, k = map(int, input().split())
for i in range(10 ** 9):
    if n < k ** i:
        print(i)
        exit()
