import java.util.Scanner;
public class Main{
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
}
} import java.util.Scanner; Scanner java.util public class Main{
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
}
} Main public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
} main {
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int x = 0; x 0 while( n >= Math.pow(k,x)){
    x ++;
  } n >= Math.pow(k,x) n Math.pow(k,x) Math.pow Math k x {
    x ++;
  } x ++ x System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main{
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
}
} public class Main{
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
}
} Main
import java.util.Scanner;
public class Main{
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int n = scan.nextInt();
  int k = scan.nextInt();
  int x = 0;
  
  while( n >= Math.pow(k,x)){
    x ++;
  }
  
  System.out.println(x);
}
}
