import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	}
} 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();
		int k = sc.nextInt();
		int kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	}
} Main public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	} main {


		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	} 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 kurai = k; kurai k int answer = 1; answer 1 while (kurai <= n) {
			answer++;
			kurai*= k;
		} kurai <= n kurai n {
			answer++;
			kurai*= k;
		} answer++ answer kurai*= k kurai k System.out.println(answer) System.out.println System.out System System.out answer 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 kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	}
} public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		int kurai = k;

		int answer = 1;

		while (kurai <= n) {
			answer++;
			kurai*= k;
		}
		System.out.println(answer);


	}
}