import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int n = N; n N int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int ans = 0; ans 0 if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        } n>=K n K {
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        } for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            } int i=1; int i=1; i 1 i<n i n i++ i++ i {
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            } {
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            } ans = i ans i if(N/K<K){
                    ans = i + 1;
                    break;
                } N/K<K N/K N K K {
                    ans = i + 1;
                    break;
                } ans = i + 1 ans i + 1 i 1 break; N = (int)N / K N (int)N / K (int)N K System.out.println(ans) System.out.println System.out System System.out ans if(n<K){
            System.out.println(1);
        } n<K n K {
            System.out.println(1);
        } System.out.println(1) System.out.println System.out System System.out 1 String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int n = N;
        int K = sc.nextInt();
        int ans = 0;
        if(n>=K){
            for(int i=1; i<n; i++){
                ans = i;
                if(N/K<K){
                    ans = i + 1;
                    break;
                }
                N = (int)N / K;
            }
        
            System.out.println(ans);
        }
        else if(n<K){
            System.out.println(1);
        }
    }
}