#Good question
import sys
N,K = map(int,input().split())

if not ( 1 <= N <= 10**9 and 2 <= K <= 10 ): sys.exit()

count = 0
a = N
while a >= K:
    a = a // K
    count += 1
print(count+1) import sys sys N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K if not ( 1 <= N <= 10**9 and 2 <= K <= 10 ): sys.exit() not ( 1 <= N <= 10**9 and 2 <= K <= 10 ) 1 <= N <= 10**9 and 2 <= K <= 10 1 <= N <= 10**9 1 <= N 1 N 10**9 10 9 2 <= K <= 10 2 <= K 2 K 10 count = 0 count 0 a = N a N while a >= K:
    a = a // K
    count += 1 a >= K a K a = a // K a a // K a K count += 1 count 1 print(count+1) print count+1 count 1 count = 0 0 count a = a // K a // K a N,K = map(int,input().split()) map(int,input().split()) N count += 1 1 count K = map(int,input().split()) map(int,input().split()) K a = N N a
#Good question
import sys
N,K = map(int,input().split())

if not ( 1 <= N <= 10**9 and 2 <= K <= 10 ): sys.exit()

count = 0
a = N
while a >= K:
    a = a // K
    count += 1
print(count+1)