import 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();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

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

        int N = sc.nextInt();
        int K = sc.nextInt();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

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

        int N = sc.nextInt();
        int K = sc.nextInt();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

    } 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 for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        } int i = 0; int i = 0; i 0 i < 1000000000 i 1000000000 i++ i++ i {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        } {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        } N /= K N K if (N == 0) {
                System.out.println(i + 1);
                return;
            } N == 0 N 0 {
                System.out.println(i + 1);
                return;
            } System.out.println(i + 1) System.out.println System.out System System.out i + 1 i 1 return; 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();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

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

        int N = sc.nextInt();
        int K = sc.nextInt();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

    }
} Main
import 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();

        for (int i = 0; i < 1000000000; i++) {
            N /= K;
            if (N == 0) {
                System.out.println(i + 1);
                return;
            }
        }

    }
}
