import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    } main {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int N = scn.nextInt(); N scn.nextInt() scn.nextInt scn int K = scn.nextInt(); K scn.nextInt() scn.nextInt scn int ans = 1; ans 1 while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        } true {
            if(Math.pow(K,ans) > N) break;
            ans++;
        } if(Math.pow(K,ans) > N) break; Math.pow(K,ans) > N Math.pow(K,ans) Math.pow Math K ans N break; ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scn = new Scanner(System.in);
        int N = scn.nextInt();
        int K = scn.nextInt();
        
        int ans = 1;
        while(true){
            if(Math.pow(K,ans) > N) break;
            ans++;
        }
        System.out.println(ans);
    }
}
