import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    } main {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int K = stdIn.nextInt(); K stdIn.nextInt() stdIn.nextInt stdIn stdIn.close() stdIn.close stdIn int count = 0; count 0 while (N != 0) {
            N = N / K;
            count++;
        } N != 0 N 0 {
            N = N / K;
            count++;
        } N = N / K N N / K N K count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int K = stdIn.nextInt();
        stdIn.close();

        int count = 0;

        while (N != 0) {
            N = N / K;
            count++;
        }
        
        System.out.println(count);
    }
}