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