import java.util.Scanner;

public class Main {

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

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    } main {
        Scanner scan = new Scanner(System.in);

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int i=0; i 0 for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        } ; {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        } {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        } n /= k n k i++ i if (n == 0) {
                System.out.println(i);
                break;
            } n == 0 n 0 {
                System.out.println(i);
                break;
            } System.out.println(i) System.out.println System.out System System.out i break; String[] args args public class Main {

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

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    }
} public class Main {

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

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {

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

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

        int i=0;
        for (;;) {
            n /= k;
            i++;
            if (n == 0) {
                System.out.println(i);
                break;
            }
        }
    }
}