#! /usr/bin/env python3
import sys
sys.setrecursionlimit(10**9)


INF=10**20
def solve(N: int, K: int):
    ans = 0
    while N >= K:
        N //= K
        ans += 1

    
    print(ans+1)
    return

def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K)



if __name__ == "__main__":
    main() import sys sys sys.setrecursionlimit(10**9) sys.setrecursionlimit sys setrecursionlimit 10**9 10 9 INF=10**20 INF 10**20 10 20 def solve(N: int, K: int):
    ans = 0
    while N >= K:
        N //= K
        ans += 1

    
    print(ans+1)
    return solve ans = 0 ans 0 while N >= K:
        N //= K
        ans += 1

    
     N >= K N K N //= K N K ans += 1 ans 1 print(ans+1) print ans+1 ans 1 return N: int N K: int K def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K) main def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
     iterate_tokens for line in sys.stdin:
            for word in line.split():
                yield word
     line sys.stdin sys stdin for word in line.split():
                yield word
     word line.split() line.split line split yield word word tokens = iterate_tokens() tokens iterate_tokens() iterate_tokens N = int(next(tokens)) N int(next(tokens)) int next(tokens) next tokens K = int(next(tokens)) K int(next(tokens)) int next(tokens) next tokens solve(N, K) solve N K if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K) def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K) main INF=10**20 10**20 INF def solve(N: int, K: int):
    ans = 0
    while N >= K:
        N //= K
        ans += 1

    
    print(ans+1)
    return def solve(N: int, K: int):
    ans = 0
    while N >= K:
        N //= K
        ans += 1

    
    print(ans+1)
    return solve
#! /usr/bin/env python3
import sys
sys.setrecursionlimit(10**9)


INF=10**20
def solve(N: int, K: int):
    ans = 0
    while N >= K:
        N //= K
        ans += 1

    
    print(ans+1)
    return

def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    solve(N, K)



if __name__ == "__main__":
    main()
