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