import java.util.*;
public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  }
} import java.util.*; util.* java public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  }
} Main public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  } main {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  } Scanner in=new Scanner(System.in); in new Scanner(System.in) int N=in.nextInt(); N in.nextInt() in.nextInt in int K=in.nextInt(); K in.nextInt() in.nextInt in int l=(int)Math.ceil((Math.log(N)/Math.log(K))); l (int)Math.ceil((Math.log(N)/Math.log(K))) Math.ceil Math (Math.log(N)/Math.log(K)) Math.log(N) Math.log Math N Math.log(K) Math.log Math K if(l==0)
System.out.println("1");
else
System.out.println(l); l==0 l 0 System.out.println("1") System.out.println System.out System System.out "1" System.out.println(l) System.out.println System.out System System.out l String args[] args public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  }
} public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  }
} Main
import java.util.*;
public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int N=in.nextInt();
    int K=in.nextInt();
    int l=(int)Math.ceil((Math.log(N)/Math.log(K)));
if(l==0)
System.out.println("1");
else
System.out.println(l);
  }
}