import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int tmp = n;
        int cnt = 0;

        while(tmp > 0){
            tmp /= k;
            cnt++;
        }

        System.out.println(cnt);
        
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int tmp = n;
        int cnt = 0;

        while(tmp > 0){
            tmp /= k;
            cnt++;
        }

        System.out.println(cnt);
        
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int tmp = n;
        int cnt = 0;

        while(tmp > 0){
            tmp /= k;
            cnt++;
        }

        System.out.println(cnt);
        
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int tmp = n;
        int cnt = 0;

        while(tmp > 0){
            tmp /= k;
            cnt++;
        }

        System.out.println(cnt);
        
    } 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 tmp = n; tmp n int cnt = 0; cnt 0 while(tmp > 0){
            tmp /= k;
            cnt++;
        } tmp > 0 tmp 0 {
            tmp /= k;
            cnt++;
        } tmp /= k tmp k cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int tmp = n;
        int cnt = 0;

        while(tmp > 0){
            tmp /= k;
            cnt++;
        }

        System.out.println(cnt);
        
    }
}