import math
N, K = [int(i) for i in input().split()]
print(math.floor(math.log(N, K)) + 1) import math math int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N, K = [int(i) for i in input().split()] N [int(i) for i in 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 = [int(i) for i in input().split()] [int(i) for i in input().split()] N K = [int(i) for i in input().split()] [int(i) for i in input().split()] K
import math
N, K = [int(i) for i in input().split()]
print(math.floor(math.log(N, K)) + 1)