import java.util.*;
public class Main {
    public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    }
  
  static void findNumberOfDigits(long n, int base) 
    { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } 
  
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    }
  
  static void findNumberOfDigits(long n, int base) 
    { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } 
  
} Main public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    } main {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N N K; K N = s.nextInt() N s.nextInt() s.nextInt s K = s.nextInt() K s.nextInt() s.nextInt s findNumberOfDigits(N,K) findNumberOfDigits N K String args[] args static void findNumberOfDigits(long n, int base) 
    { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } findNumberOfDigits { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1); dig (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1) Math.floor( Math.log(n) / Math.log(base)	) Math.floor Math Math.log(n) / Math.log(base) Math.log(n) Math.log Math n Math.log(base) Math.log Math base 1 System.out.print(dig) System.out.print System.out System System.out dig long n n int base base public class Main {
    public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    }
  
  static void findNumberOfDigits(long n, int base) 
    { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } 
  
} public class Main {
    public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    }
  
  static void findNumberOfDigits(long n, int base) 
    { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } 
  
} Main
import java.util.*;
public class Main {
    public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int N,K;
      	N = s.nextInt();
      	K = s.nextInt();
		
      findNumberOfDigits(N,K);

    }
  
  static void findNumberOfDigits(long n, int base) 
    { 
          
        // Calculating log using base changing 
        // property and then taking it  
        // floor and then adding 1. 
        int dig = (int)(	Math.floor( Math.log(n) / Math.log(base)	)  + 1);  
          
          
        // printing output 
        System.out.print(dig); 
    } 
  
}