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

if(N==1):
    print(1)
    exit()
print(math.ceil(math.log(N,K))) 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):
    print(1)
    exit() N==1 N 1 print(1) print 1 exit() exit print(math.ceil(math.log(N,K))) print math.ceil(math.log(N,K)) math.ceil math ceil math.log(N,K) math.log math log N K 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())

if(N==1):
    print(1)
    exit()
print(math.ceil(math.log(N,K)))
