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

m = 0
while True:
    m += 1
    if k**m > n:
        print(m)
        break n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k m = 0 m 0 while True:
    m += 1
    if k**m > n:
        print(m)
        break True m += 1 m 1 if k**m > n:
        print(m)
        break k**m > n k**m k m n print(m) print m break k = map(int, input().split()) map(int, input().split()) k n, k = map(int, input().split()) map(int, input().split()) n m = 0 0 m m += 1 1 m
n, k = map(int, input().split())

m = 0
while True:
    m += 1
    if k**m > n:
        print(m)
        break