from math import log10
n,k=map(int,input().split())
m=int(log10(n)/log10(k))
print(m+1) from math import log10 n,k=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split k m=int(log10(n)/log10(k)) m int(log10(n)/log10(k)) int log10(n)/log10(k) log10(n) log10 n log10(k) log10 k print(m+1) print m+1 m 1 n,k=map(int,input().split()) map(int,input().split()) n m=int(log10(n)/log10(k)) int(log10(n)/log10(k)) m k=map(int,input().split()) map(int,input().split()) k
from math import log10
n,k=map(int,input().split())
m=int(log10(n)/log10(k))
print(m+1)