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 A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  }
}
 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 A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  } 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 A = K; A K int R = 1; R 1 while((N - A) >= 0){
      A =  A * K;
      R++;
    } (N - A) >= 0 (N - A) N A 0 {
      A =  A * K;
      R++;
    } A =  A * K A A * K A K R++ R System.out.println(R) System.out.println System.out System System.out R 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 A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  }
} 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 A = K;
    int R = 1;

    
    while((N - A) >= 0){
      A =  A * K;
      R++;
    }   

    System.out.println(R);
  }
}

