def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    # nが大きい
    while n >= i:
        i *= k
        cnt += 1
    print(cnt)

if __name__ == '__main__':
    main() def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    # nが大きい
    while n >= i:
        i *= k
        cnt += 1
    print(cnt) main n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k cnt = 0 cnt 0 i = 1 i 1 while n >= i:
        i *= k
        cnt += 1
     n >= i n i i *= k i k cnt += 1 cnt 1 print(cnt) print cnt if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    # nが大きい
    while n >= i:
        i *= k
        cnt += 1
    print(cnt) def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    # nが大きい
    while n >= i:
        i *= k
        cnt += 1
    print(cnt) main
def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    # nが大きい
    while n >= i:
        i *= k
        cnt += 1
    print(cnt)

if __name__ == '__main__':
    main()