import java.util.*;
import javax.lang.model.util.ElementScanner6;

public class Main {

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

        // 入力
        int n = sc.nextInt();
        int k = sc.nextInt();

        // 処理
        int out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    }

} import java.util.*; util.* java import javax.lang.model.util.ElementScanner6; ElementScanner6 javax.lang.model.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 out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    }

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

        // 入力
        int n = sc.nextInt();
        int k = sc.nextInt();

        // 処理
        int out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    } main {
        Scanner sc = new Scanner(System.in);

        // 入力
        int n = sc.nextInt();
        int k = sc.nextInt();

        // 処理
        int out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    } 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 out = 0; out 0 while (n >= k) {
            n /= k;
            out++;
        } n >= k n k {
            n /= k;
            out++;
        } n /= k n k out++ out out += 1 out 1 System.out.println(out) System.out.println System.out System System.out out 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 out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    }

} public class Main {

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

        // 入力
        int n = sc.nextInt();
        int k = sc.nextInt();

        // 処理
        int out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    }

} Main
import java.util.*;
import javax.lang.model.util.ElementScanner6;

public class Main {

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

        // 入力
        int n = sc.nextInt();
        int k = sc.nextInt();

        // 処理
        int out = 0;
        while (n >= k) {
            n /= k;
            out++;
        }
        out += 1;


        // 出力
        System.out.println(out);
    }

}