import java.util.Scanner;

//public class atcoder0221_B{
public class Main{

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	} main {
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan int result2 = N; result2 N int result = 0; result 0 do {
			result2=result2/K;
			result++;
		}while(result2!=0); result2!=0 result2 0 {
			result2=result2/K;
			result++;
		} result2=result2/K result2 result2/K result2 K 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[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	}
} public class Main{

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	}
} Main
import java.util.Scanner;

//public class atcoder0221_B{
public class Main{

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();

		int result2 = N;
		int result = 0;

		do {
			result2=result2/K;
			result++;
		}while(result2!=0);

		System.out.println(result);
	}
}