import math
N, K = map(int, input().split())
if N != 1:
  res = math.log(N, K)
else:
  res = 1
print(math.ceil(res)) import math math N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K if N != 1:
  res = math.log(N, K)
else:
  res = 1 N != 1 N 1 res = math.log(N, K) res math.log(N, K) math.log math log N K res = 1 res 1 print(math.ceil(res)) print math.ceil(res) math.ceil math ceil res res = math.log(N, K) math.log(N, K) res N, K = map(int, input().split()) map(int, input().split()) N K = map(int, input().split()) map(int, input().split()) K res = 1 1 res
import math
N, K = map(int, input().split())
if N != 1:
  res = math.log(N, K)
else:
  res = 1
print(math.ceil(res))