import math
N, K = map(int, input().split())

a = N
i = 1
while a >= K:
    a = a/K
    i += 1
print(i)
 import math math N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K a = N a N i = 1 i 1 while a >= K:
    a = a/K
    i += 1 a >= K a K a = a/K a a/K a K i += 1 i 1 print(i) print i a = a/K a/K a a = N N a i += 1 1 i N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K i = 1 1 i
import math
N, K = map(int, input().split())

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

