import java.util.Scanner;

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

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

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

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

        System.out.println(counter);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

        System.out.println(counter);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

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

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

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

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

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

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

        int counter = 1;
        while (n >= k) {
            n = n / k;
            counter++;
        }

        System.out.println(counter);
    }
}