import fractions

import collections

from collections import deque

import math

import itertools



N,K=list(map(int,input().split()))

i=1

P=K

while(P<=N):

    i=i+1

    P=P*K

else:

    print(i)
def keta(n,k):

    cnt=0

    while(n!=0):

        n//=k

        cnt+=1

    return cnt



N,K=list(map(int,input().split()))

print((keta(N,K)))
import fractions
import collections
from collections import deque
import math
import itertools

N, K = list(map(int, input().split()))
i = 1
P = K
while P <= N:
    i = i + 1
    P = P * K
else:
    print(i)

def keta(n, k):
    cnt = 0
    while n != 0:
        n //= k
        cnt += 1
    return cnt


N, K = list(map(int, input().split()))
print((keta(N, K)))

-import fractions -import collections -from collections import deque -import math -import itertools +def keta(n, k): +    cnt = 0 +    while n != 0: +        n //= k +        cnt += 1 +    return cnt + -i = 1 -P = K -while P <= N: -    i = i + 1 -    P = P * K -else: -    print(i) +print((keta(N, K)))