import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int digit = 0; digit 0 while(N != 0){
            N = N/K;
            digit++;
        } N != 0 N 0 {
            N = N/K;
            digit++;
        } N = N/K N N/K N K digit++ digit System.out.println(digit) System.out.println System.out System System.out digit String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int digit = 0;
        
        while(N != 0){
            N = N/K;
            digit++;
        }
        
        System.out.println(digit);
    }
}
