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