import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	}
} Main public static void main(String[] args) {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	} main {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int base = sc.nextInt(); base sc.nextInt() sc.nextInt sc int i = 0; i 0 while(Math.pow(base, i) <= n) {
			i++;
		} Math.pow(base, i) <= n Math.pow(base, i) Math.pow Math base i n {
			i++;
		} i++ i System.out.print(i) System.out.print System.out System System.out i String[] args args public class Main {
	public static void main(String[] args) {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	}
} public class Main {
	public static void main(String[] args) {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		//入力の読み込み
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();  //整数Nの値
		int base = sc.nextInt();  //進数Kの値
		int i = 0;

		//基数の値^iごとに桁が増える
		while(Math.pow(base, i) <= n) {
			i++;
		}
		System.out.print(i);
	}
}