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


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


public class Main
{
	
	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int j,flag;
		double n,k;
		n=sc.nextDouble();
		k=sc.nextDouble();
		double i = (Math.log(n)/Math.log(k));
		j=(int)(Math.floor(i)+1);
		System.out.println(j);
		
		
		
	}
}