import java.util.*;
import java.lang.Math;

public class Main
{
	public static void main(String args[])
	{
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	}
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main
{
	public static void main(String args[])
	{
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	}
} Main public static void main(String args[])
	{
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	} main {
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	} Scanner s1=new Scanner (System.in); s1 new Scanner (System.in) double n n r; r n=s1.nextDouble() n s1.nextDouble() s1.nextDouble s1 r=s1.nextDouble() r s1.nextDouble() s1.nextDouble s1 double m = (Math.log(n)/Math.log(r)); m (Math.log(n)/Math.log(r)) Math.log(n) Math.log Math n Math.log(r) Math.log Math r int count=(int)(Math.floor(m)+1); count (int)(Math.floor(m)+1) Math.floor(m) Math.floor Math m 1 System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	}
} Main
import java.util.*;
import java.lang.Math;

public class Main
{
	public static void main(String args[])
	{
		Scanner s1=new Scanner (System.in);
		double n,r;
		n=s1.nextDouble();
		r=s1.nextDouble();
		double m = (Math.log(n)/Math.log(r));
		int count=(int)(Math.floor(m)+1);
		System.out.println(count);
	}
}