import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  }
} Main public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  } main {
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) int N =sc.nextInt(); N sc.nextInt() sc.nextInt sc int K=sc.nextInt(); K sc.nextInt() sc.nextInt sc int x =N; x N int y=1; y 1 while(x>=K){
      x=x/K;y=y+1;} x>=K x K {
      x=x/K;y=y+1;} x=x/K x x/K x K y=y+1 y y+1 y 1 System.out.println(y) System.out.println System.out System System.out y String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    int N =sc.nextInt();
    int K=sc.nextInt();
    int x =N;int y=1;
    while(x>=K){
      x=x/K;y=y+1;}
    System.out.println(y);
  }
}