import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

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

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

	} main {

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double N = sc.nextDouble(); N sc.nextDouble() sc.nextDouble sc double K = sc.nextDouble(); K sc.nextDouble() sc.nextDouble sc double log = Math.log(N) / Math.log(K); log Math.log(N) / Math.log(K) Math.log(N) Math.log Math N Math.log(K) Math.log Math K if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		} Math.floor(log) == log Math.floor(log) Math.floor Math log log {
			System.out.println((int)(log + 1));
		} System.out.println((int)(log + 1)) System.out.println System.out System System.out (int)(log + 1) log 1 {
			System.out.println((int)Math.ceil(log));
		} System.out.println((int)Math.ceil(log)) System.out.println System.out System System.out (int)Math.ceil(log) Math.ceil Math log String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		double N = sc.nextDouble();
		double K = sc.nextDouble();
		double log = Math.log(N) / Math.log(K);
		
		if (Math.floor(log) == log) {
			System.out.println((int)(log + 1));
		} else {
			System.out.println((int)Math.ceil(log));
		}

	}
}