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