import java.util.Scanner;

public class Main {
	static int cnt = 1;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	}

	private static void div(int n, int k) {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {
	static int cnt = 1;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	}

	private static void div(int n, int k) {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	}

} Main static int cnt = 1; cnt 1 public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	} 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 if (k <= n)
			div(n, k); k <= n k n div(n, k) div n k System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args private static void div(int n, int k) {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	} div {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	} cnt++ cnt int val = n / k; val n / k n k if (k <= val) {
			div(val, k);
		} k <= val k val {
			div(val, k);
		} div(val, k) div val k int n n int k k public class Main {
	static int cnt = 1;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	}

	private static void div(int n, int k) {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	}

} public class Main {
	static int cnt = 1;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	}

	private static void div(int n, int k) {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	}

} Main
import java.util.Scanner;

public class Main {
	static int cnt = 1;

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();
		if (k <= n)
			div(n, k);
		System.out.println(cnt);
	}

	private static void div(int n, int k) {
		cnt++;
		int val = n / k;
		if (k <= val) {
			div(val, k);
		}
	}

}