
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    } main {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int pro = b; pro b int target = 1; target 1 while ( pro <= a) {
        	target ++;
        	pro *= b;
        } pro <= a pro a {
        	target ++;
        	pro *= b;
        } target ++ target pro *= b pro b System.out.println(target) System.out.println System.out System System.out target String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    }
} Main

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // 数値の入力
        int a = sc.nextInt();
        int b = sc.nextInt();

        int pro = b;
        int target = 1;
        // 整数NをK進数で表した時のパターン
        while ( pro <= a) {
        	target ++;
        	pro *= b;
        }

        System.out.println(target);
    }
}
