import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	}
} Main public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan String[] substr = str.split(" ", 0); substr str.split(" ", 0) str.split str " " 0 String s = substr[0]; s substr[0] substr 0 int n = Integer.parseInt(substr[0]); n Integer.parseInt(substr[0]) Integer.parseInt Integer substr[0] substr 0 int k = Integer.parseInt(substr[1]); k Integer.parseInt(substr[1]) Integer.parseInt Integer substr[1] substr 1 int i = 1; i 1 int target = k; target k while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		} true {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		} if (n < target) {
				break;
			} n < target n target {
				break;
			} break; target = target * k target target * k target k i++ i scan.close() scan.close scan System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		String[] substr = str.split(" ", 0);


		String s = substr[0];
		int n = Integer.parseInt(substr[0]);
		int k = Integer.parseInt(substr[1]);
		int i = 1;
		int target = k;
		while (true) {

			if (n < target) {
				break;
			}
			target = target * k;
			i++;

		}
		scan.close();
		System.out.println(i);
	}
}