import math
n,k = map(int, input().split())
if n != 1:
    print(math.ceil(math.log(n,k)))
else:
    print(1) 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(math.ceil(math.log(n,k)))
else:
    print(1) n != 1 n 1 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 print(1) print 1 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(math.ceil(math.log(n,k)))
else:
    print(1)