import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    }

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

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    }

} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int sinpou = sc.nextInt(); sinpou sc.nextInt() sc.nextInt sc int order = 0; order 0 int c = 1; c 1 while(c <= num) {
            c *= sinpou;
            order++;
        } c <= num c num {
            c *= sinpou;
            order++;
        } c *= sinpou c sinpou order++ order sc.close() sc.close sc System.out.println(order) System.out.println System.out System System.out order String[] args args public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    }

} public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int sinpou = sc.nextInt();
        int order = 0;
        int c = 1;
        while(c <= num) {
            c *= sinpou;
            order++;
        }
        sc.close();
        System.out.println(order);

 
    }

}