n = input()
n = n.split()
k = int(n[1])
n = int(n[0])
a = 1
b = 0
while a == 1:
    b = b + 1
    if k**b>n:
        a = 0
print(b) n = input() n input() input n = n.split() n n.split() n.split n split k = int(n[1]) k int(n[1]) int n[1] n 1 n = int(n[0]) n int(n[0]) int n[0] n 0 a = 1 a 1 b = 0 b 0 while a == 1:
    b = b + 1
    if k**b>n:
        a = 0 a == 1 a 1 b = b + 1 b b + 1 b 1 if k**b>n:
        a = 0 k**b>n k**b k b n a = 0 a 0 print(b) print b b = 0 0 b a = 0 0 a a = 1 1 a b = b + 1 b + 1 b n = n.split() n.split() n n = input() input() n k = int(n[1]) int(n[1]) k n = int(n[0]) int(n[0]) n
n = input()
n = n.split()
k = int(n[1])
n = int(n[0])
a = 1
b = 0
while a == 1:
    b = b + 1
    if k**b>n:
        a = 0
print(b)