import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        }
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        }
    } main {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        }
    } try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        } {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 digit = 0; digit 0 for (; N > 0;) {
                N = N / K;
                digit++;
            } ; N > 0 N 0 {
                N = N / K;
                digit++;
            } {
                N = N / K;
                digit++;
            } N = N / K N N / K N K digit++ digit System.out.println(digit) System.out.println System.out System System.out digit String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

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

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt();
            int K = sc.nextInt();

            int digit = 0;
            for (; N > 0;) {
                N = N / K;
                digit++;
            }

            System.out.println(digit);
        }
    }
}