import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    }

} 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 k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    } 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 long t = 1L; t 1L int r = 0; r 0 while(true){
            if(n < t)break;
            t *= k;
            r++;
        } true {
            if(n < t)break;
            t *= k;
            r++;
        } if(n < t)break; n < t n t break; t *= k t k r++ r System.out.println(r) System.out.println System.out System System.out r sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    }

} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        long t = 1L;
        int r = 0;
        while(true){
            if(n < t)break;
            t *= k;
            r++;
        }
        System.out.println(r);
        sc.close();

    }

}
