import math

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

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

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

print(math.ceil(math.log(N,K)) if N!=1 else 1)