from math import log, ceil

N, K = map(int, input().split())
res = ceil(log(N, K))
if res == 0:
    res = 1
print(res) from math import log, ceil N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K res = ceil(log(N, K)) res ceil(log(N, K)) ceil log(N, K) log N K if res == 0:
    res = 1 res == 0 res 0 res = 1 res 1 print(res) print res res = ceil(log(N, K)) ceil(log(N, K)) res res = 1 1 res 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, ceil

N, K = map(int, input().split())
res = ceil(log(N, K))
if res == 0:
    res = 1
print(res)