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

for i in range(1000000):
    if k**i > n:
        print(i)
        break n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k for i in range(1000000):
    if k**i > n:
        print(i)
        break i range(1000000) range 1000000 if k**i > n:
        print(i)
        break k**i > n k**i k i n print(i) print i break n,k = map(int, input().split()) map(int, input().split()) n k = map(int, input().split()) map(int, input().split()) k
n,k = map(int, input().split())

for i in range(1000000):
    if k**i > n:
        print(i)
        break