def main():
    n, k = map(int, input().split())
    a = 1
    b = 0

    while True:
        a *= k
        if a > n:
            break
        b += 1

    ans = b + 1
    print(ans)


if __name__ == "__main__":
    main() def main():
    n, k = map(int, input().split())
    a = 1
    b = 0

    while True:
        a *= k
        if a > n:
            break
        b += 1

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

     True a *= k a k if a > n:
            break
         a > n a n break b += 1 b 1 ans = b + 1 ans b + 1 b 1 print(ans) print ans if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    n, k = map(int, input().split())
    a = 1
    b = 0

    while True:
        a *= k
        if a > n:
            break
        b += 1

    ans = b + 1
    print(ans) def main():
    n, k = map(int, input().split())
    a = 1
    b = 0

    while True:
        a *= k
        if a > n:
            break
        b += 1

    ans = b + 1
    print(ans) main
def main():
    n, k = map(int, input().split())
    a = 1
    b = 0

    while True:
        a *= k
        if a > n:
            break
        b += 1

    ans = b + 1
    print(ans)


if __name__ == "__main__":
    main()
