import math
N ,K = map(int,input().split())
a = math.log(N,K)
print(math.floor(a+1)) import math math N ,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K a = math.log(N,K) a math.log(N,K) math.log math log N K print(math.floor(a+1)) print math.floor(a+1) math.floor math floor a+1 a 1 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
import math
N ,K = map(int,input().split())
a = math.log(N,K)
print(math.floor(a+1))
