from math import log, floor

N, K = map(int, input().split())

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

N, K = map(int, input().split())

print(floor(log(N, K))+1)