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

for i in range(1, 10**4):
    if n < k**i:
        print(i)
        exit() n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k for i in range(1, 10**4):
    if n < k**i:
        print(i)
        exit() i range(1, 10**4) range 1 10**4 10 4 if n < k**i:
        print(i)
        exit() n < k**i n k**i k i print(i) print i exit() exit 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(1, 10**4):
    if n < k**i:
        print(i)
        exit()