import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long N = sc.nextLong();
   int K = sc.nextInt();

   for(int i=0;;i++){
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   }
 
 }
} import java.util.Scanner; Scanner java.util class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long N = sc.nextLong();
   int K = sc.nextInt();

   for(int i=0;;i++){
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   }
 
 }
} Main public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long N = sc.nextLong();
   int K = sc.nextInt();

   for(int i=0;;i++){
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   }
 
 } main {
   Scanner sc = new Scanner(System.in);
   long N = sc.nextLong();
   int K = sc.nextInt();

   for(int i=0;;i++){
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   }
 
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc for(int i=0;;i++){
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   } int i=0; int i=0; i 0 i++ i++ i {
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   } {
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   } if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    } (Math.pow(K, i))>N (Math.pow(K, i)) Math.pow Math K i N {
    System.out.println(i);
      break;
    } System.out.println(i) System.out.println System.out System System.out i break; String args[] args
import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   long N = sc.nextLong();
   int K = sc.nextInt();

   for(int i=0;;i++){
    if((Math.pow(K, i))>N){
    System.out.println(i);
      break;
    }
   }
 
 }
}
