import java.util.Scanner;

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

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

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

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

        System.out.println(count);
    } main {
        Scanner cin = new Scanner(System.in);

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

        System.out.println(count);
    } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int n n k; k n = cin.nextInt() n cin.nextInt() cin.nextInt cin k = cin.nextInt() k cin.nextInt() cin.nextInt cin int product = k; product k int count = 1; count 1 while(product <= n) {
            count++;
            product *= k;
        } product <= n product n {
            count++;
            product *= k;
        } count++ count product *= k product k System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

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

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

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

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

        int n, k;
        n = cin.nextInt();
        k = cin.nextInt();

        int product = k;
        int count = 1;

        while(product <= n) {
            count++;
            product *= k;
        }

        System.out.println(count);
    }
}
