<filename>atcoder/abc/b156.py<gh_stars>0
N, K = map(int, input().split())
ans = 0
while N > 0:
    N = N // K
    ans += 1
print(ans)

<filename>atcoder/abc/b156.py<gh_stars>0
N, K = map(int, input().split())
ans = 0
while N > 0:
    N = N // K
    ans += 1
print(ans)
