def answer(n: int, k: int) -> int:
    digits = 0
    while 0 < n:
        n //= k
        digits += 1

    return digits


def main():
    n, k = map(int, input().split())
    print(answer(n, k))


if __name__ == '__main__':
    main() def answer(n: int, k: int) -> int:
    digits = 0
    while 0 < n:
        n //= k
        digits += 1

    return digits answer digits = 0 digits 0 while 0 < n:
        n //= k
        digits += 1

     0 < n 0 n n //= k n k digits += 1 digits 1 return digits digits n: int n k: int k def main():
    n, k = map(int, input().split())
    print(answer(n, k)) main n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k print(answer(n, k)) print answer(n, k) answer n k if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def answer(n: int, k: int) -> int:
    digits = 0
    while 0 < n:
        n //= k
        digits += 1

    return digits def answer(n: int, k: int) -> int:
    digits = 0
    while 0 < n:
        n //= k
        digits += 1

    return digits answer def main():
    n, k = map(int, input().split())
    print(answer(n, k)) def main():
    n, k = map(int, input().split())
    print(answer(n, k)) main
def answer(n: int, k: int) -> int:
    digits = 0
    while 0 < n:
        n //= k
        digits += 1

    return digits


def main():
    n, k = map(int, input().split())
    print(answer(n, k))


if __name__ == '__main__':
    main()