import sys


def main():
    input = sys.stdin.buffer.readline
    n, k = map(int, input().split())
    i = 1
    while k ** i <= n:
        i += 1
    print(i)


if __name__ == "__main__":
    main() import sys sys def main():
    input = sys.stdin.buffer.readline
    n, k = map(int, input().split())
    i = 1
    while k ** i <= n:
        i += 1
    print(i) main input = sys.stdin.buffer.readline input sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k i = 1 i 1 while k ** i <= n:
        i += 1
     k ** i <= n k ** i k i n i += 1 i 1 print(i) print i if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    input = sys.stdin.buffer.readline
    n, k = map(int, input().split())
    i = 1
    while k ** i <= n:
        i += 1
    print(i) def main():
    input = sys.stdin.buffer.readline
    n, k = map(int, input().split())
    i = 1
    while k ** i <= n:
        i += 1
    print(i) main
import sys


def main():
    input = sys.stdin.buffer.readline
    n, k = map(int, input().split())
    i = 1
    while k ** i <= n:
        i += 1
    print(i)


if __name__ == "__main__":
    main()
