import java.util.Scanner;

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

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    } main {
        Scanner scanner = new Scanner(System.in);

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int k = scanner.nextInt(); k scanner.nextInt() scanner.nextInt scanner int digit = (int)(Math.log(n) / Math.log(k)) + 1; digit (int)(Math.log(n) / Math.log(k)) + 1 (int)(Math.log(n) / Math.log(k)) Math.log(n) Math.log Math n Math.log(k) Math.log Math k 1 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) {
        Scanner scanner = new Scanner(System.in);

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    }
} Main
import java.util.Scanner;

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

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

        int digit = (int)(Math.log(n) / Math.log(k)) + 1;
        System.out.println(digit);
    }
}