import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        
        int n=stdIn.nextInt();
        int k=stdIn.nextInt();
        int a=n;
        int count=0; //桁数
        while(a>0){
            a=a/k;
            count++;
        }
        System.out.print(count);
        
    }

} import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        
        int n=stdIn.nextInt();
        int k=stdIn.nextInt();
        int a=n;
        int count=0; //桁数
        while(a>0){
            a=a/k;
            count++;
        }
        System.out.print(count);
        
    }

} Main public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        
        int n=stdIn.nextInt();
        int k=stdIn.nextInt();
        int a=n;
        int count=0; //桁数
        while(a>0){
            a=a/k;
            count++;
        }
        System.out.print(count);
        
    } main {
        Scanner stdIn=new Scanner(System.in);
        
        int n=stdIn.nextInt();
        int k=stdIn.nextInt();
        int a=n;
        int count=0; //桁数
        while(a>0){
            a=a/k;
            count++;
        }
        System.out.print(count);
        
    } Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int n=stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int k=stdIn.nextInt(); k stdIn.nextInt() stdIn.nextInt stdIn int a=n; a n int count=0; count 0 while(a>0){
            a=a/k;
            count++;
        } a>0 a 0 {
            a=a/k;
            count++;
        } a=a/k a a/k a k count++ count System.out.print(count) System.out.print System.out System System.out count String[] args args
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        
        int n=stdIn.nextInt();
        int k=stdIn.nextInt();
        int a=n;
        int count=0; //桁数
        while(a>0){
            a=a/k;
            count++;
        }
        System.out.print(count);
        
    }

}