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 dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  }
  

  
} 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 dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  }
  

  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  } 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 dg = 0; dg 0 while(N!=0){
      N=N/K;
      dg=dg+1;
    } N!=0 N 0 {
      N=N/K;
      dg=dg+1;
    } N=N/K N N/K N K dg=dg+1 dg dg+1 dg 1 System.out.println(dg) System.out.println System.out System System.out dg 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 dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  }
  

  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    int dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  }
  

  
} 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 dg = 0;
    while(N!=0){
      N=N/K;
      dg=dg+1;
    }
    System.out.println(dg);
  }
  

  
}