import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    }
} Main public static void main(String[] args){
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    } main {
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    } int n; n int k; k int result = 0; result 0 int temp; temp Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc k = sc.nextInt() k sc.nextInt() sc.nextInt sc sc.close() sc.close sc temp = n temp n for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        } int index=1; int index=1; index 1 temp >= k temp k index++ index++ index {
            temp = temp / k ;
            result = index;
        } {
            temp = temp / k ;
            result = index;
        } temp = temp / k temp temp / k temp k result = index result index result++ result System.out.println( result ) System.out.println System.out System System.out result String[] args args public class Main{
    public static void main(String[] args){
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    }
} public class Main{
    public static void main(String[] args){
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        // 変数宣言
        int n;
        int k;
        int result = 0;
        int temp;

        // 標準入力
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        sc.close();

        temp = n;

        // 演算処理
        for( int index=1; temp >= k ; index++ ){
            temp = temp / k ;
            result = index;
        }
        result++;

        // 出力結果
        System.out.println( result );

    }
}