import java.util.Scanner;

public class Main {
    static void findNumberOfDigits(long n, int base) {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    }
} import java.util.Scanner; Scanner java.util public class Main {
    static void findNumberOfDigits(long n, int base) {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    }
} Main static void findNumberOfDigits(long n, int base) {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    } findNumberOfDigits {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    } int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1); dig (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1) Math.floor(
                Math.log(n) / Math.log(base)) Math.floor Math Math.log(n) / Math.log(base) Math.log(n) Math.log Math n Math.log(base) Math.log Math base 1 System.out.println(dig) System.out.println System.out System System.out dig long n n int base base public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    } main {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int base = sc.nextInt(); base sc.nextInt() sc.nextInt sc findNumberOfDigits(n, base) findNumberOfDigits n base String[] args args public class Main {
    static void findNumberOfDigits(long n, int base) {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    }
} public class Main {
    static void findNumberOfDigits(long n, int base) {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    }
} Main
import java.util.Scanner;

public class Main {
    static void findNumberOfDigits(long n, int base) {

        int dig = (int)(Math.floor(
                Math.log(n) / Math.log(base))
                + 1);
        System.out.println(dig);
    }

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int base = sc.nextInt();


        findNumberOfDigits(n, base);

    }
}