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

    c = 0
    while True:
        if n >= k ** c:
            c += 1
        else:
            break
    
    print(c)
    return
main() def main():
    n,k = map(int, input().split())

    c = 0
    while True:
        if n >= k ** c:
            c += 1
        else:
            break
    
    print(c)
    return main n,k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k c = 0 c 0 while True:
        if n >= k ** c:
            c += 1
        else:
            break
    
     True if n >= k ** c:
            c += 1
        else:
            break
    
     n >= k ** c n k ** c k c c += 1 c 1 break print(c) print c return main() main def main():
    n,k = map(int, input().split())

    c = 0
    while True:
        if n >= k ** c:
            c += 1
        else:
            break
    
    print(c)
    return def main():
    n,k = map(int, input().split())

    c = 0
    while True:
        if n >= k ** c:
            c += 1
        else:
            break
    
    print(c)
    return main
def main():
    n,k = map(int, input().split())

    c = 0
    while True:
        if n >= k ** c:
            c += 1
        else:
            break
    
    print(c)
    return
main()
