import java.util.Scanner;

public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	}
} Main static Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	} main {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	} int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int k = scn.nextInt(); k scn.nextInt() scn.nextInt scn int ans = (int) (Math.log(n) / Math.log(k)) + 1; ans (int) (Math.log(n) / Math.log(k)) + 1 (int) (Math.log(n) / Math.log(k)) Math.log(n) Math.log Math n Math.log(k) Math.log Math k 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	}
} public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		int n = scn.nextInt();
		int k = scn.nextInt();
		int ans = (int) (Math.log(n) / Math.log(k)) + 1;
		System.out.println(ans);
	}
}
