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

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    }
} 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();

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    } main {
        Scanner sc = new Scanner(System.in);

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

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    } 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 double val = Math.log(n) / Math.log(k); val Math.log(n) / Math.log(k) Math.log(n) Math.log Math n Math.log(k) Math.log Math k if (val % 1 == 0) {
            val++;
        } val % 1 == 0 val % 1 val 1 0 {
            val++;
        } val++ val System.out.println((int) Math.ceil(val)) System.out.println System.out System System.out (int) Math.ceil(val) Math.ceil Math val 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();

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    }
} 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();

        double val = Math.log(n) / Math.log(k);

        if (val % 1 == 0) {
            val++;
        }

        System.out.println((int) Math.ceil(val));
    }
}
