#!/usr/bin/env python3


def main():
    N, K = map(int, open(0).read().split())
    i = 0
    while N != 0:
        N = N // K
        i += 1
    print(i)


main() def main():
    N, K = map(int, open(0).read().split())
    i = 0
    while N != 0:
        N = N // K
        i += 1
    print(i) main N, K = map(int, open(0).read().split()) N map(int, open(0).read().split()) map int open(0).read().split() (0).read().split (0).read() (0).read (0) open 0 read split K i = 0 i 0 while N != 0:
        N = N // K
        i += 1
     N != 0 N 0 N = N // K N N // K N K i += 1 i 1 print(i) print i main() main def main():
    N, K = map(int, open(0).read().split())
    i = 0
    while N != 0:
        N = N // K
        i += 1
    print(i) def main():
    N, K = map(int, open(0).read().split())
    i = 0
    while N != 0:
        N = N // K
        i += 1
    print(i) main
#!/usr/bin/env python3


def main():
    N, K = map(int, open(0).read().split())
    i = 0
    while N != 0:
        N = N // K
        i += 1
    print(i)


main()
