from math import log
n, k = map(int, input().split())
print(int(log(n, k)) + 1) from math import log n, k = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split k print(int(log(n, k)) + 1) print int(log(n, k)) + 1 int(log(n, k)) int log(n, k) log n k 1 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
n, k = map(int, input().split())
print(int(log(n, k)) + 1)