import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        int n = stdIn.nextInt();
        int k = stdIn.nextInt();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    }
} import java.util.Scanner; Scanner 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();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        int n = stdIn.nextInt();
        int k = stdIn.nextInt();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    } main {
        Scanner stdIn = new Scanner(System.in);

        int n = stdIn.nextInt();
        int k = stdIn.nextInt();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    } 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 int counter = 1; counter 1 while(n >= Math.pow(k, counter)){
            counter++;
        } n >= Math.pow(k, counter) n Math.pow(k, counter) Math.pow Math k counter {
            counter++;
        } counter++ counter System.out.println(counter) System.out.println System.out System System.out counter 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();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    }
} public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        int n = stdIn.nextInt();
        int k = stdIn.nextInt();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);

        int n = stdIn.nextInt();
        int k = stdIn.nextInt();

        int counter = 1;
        while(n >= Math.pow(k, counter)){
            counter++;
        }

        System.out.println(counter);
    }
}