n,k=list(map(int,input().split()))

ans=int(0)

while n>0:

    n=int(n/k)

    ans+=1

print(ans)
import math

n,k=list(map(int,input().split()))

print((1+int(math.log(n)/math.log(k))))
n, k = list(map(int, input().split()))
ans = int(0)
while n > 0:
    n = int(n / k)
    ans += 1
print(ans)

import math

n, k = list(map(int, input().split()))
print((1 + int(math.log(n) / math.log(k))))

+import math + -ans = int(0) -while n > 0: -    n = int(n / k) -    ans += 1 -print(ans) +print((1 + int(math.log(n) / math.log(k))))