import os, sys, re, math

(N, K) = [int(n) for n in input().split()]

d = 0
a = K ** 0
while a <= N:
    d += 1
    a *= K

print(d) import os, sys, re, math os sys re math int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n (N, K) = [int(n) for n in input().split()] (N, K) N K [int(n) for n in input().split()] d = 0 d 0 a = K ** 0 a K ** 0 K 0 while a <= N:
    d += 1
    a *= K a <= N a N d += 1 d 1 a *= K a K print(d) print d d = 0 0 d a *= K K a d += 1 1 d a = K ** 0 K ** 0 a
import os, sys, re, math

(N, K) = [int(n) for n in input().split()]

d = 0
a = K ** 0
while a <= N:
    d += 1
    a *= K

print(d)
