n,k=map(int,input().split())
import math
a=math.log(n,k)
b=math.ceil(a)
if a==b:
    print(b+1)
else:
    print(b) n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k import math math a=math.log(n,k) a math.log(n,k) math.log math log n k b=math.ceil(a) b math.ceil(a) math.ceil math ceil a if a==b:
    print(b+1)
else:
    print(b) a==b a b print(b+1) print b+1 b 1 print(b) print b a=math.log(n,k) math.log(n,k) a n,k=map(int,input().split()) map(int,input().split()) n k=map(int,input().split()) map(int,input().split()) k b=math.ceil(a) math.ceil(a) b
n,k=map(int,input().split())
import math
a=math.log(n,k)
b=math.ceil(a)
if a==b:
    print(b+1)
else:
    print(b)