import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n1 = sc.nextInt(); n1 sc.nextInt() sc.nextInt sc int nn1 = n1; nn1 n1 int n2 = sc.nextInt(); n2 sc.nextInt() sc.nextInt sc int nn2 = n2; nn2 n2 int n; n int count = 1; count 1 for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		} ; {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		} {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		} n = n1 / n2 n n1 / n2 n1 n2 n1 = n n1 n if (n1 < n2) {
				break;
			} n1 < n2 n1 n2 {
				break;
			} break; count++ count if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		} nn1 < nn2 nn1 nn2 {
			System.out.println(1);
		} System.out.println(1) System.out.println System.out System System.out 1 {
			System.out.println(count + 1);
		} System.out.println(count + 1) System.out.println System.out System System.out count + 1 count 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 数値
		int n1 = sc.nextInt();
		int nn1 = n1;
		int n2 = sc.nextInt();
		int nn2 = n2;

		int n;

		int count = 1;
		for (;;) {
			n = n1 / n2;
			n1 = n;
			if (n1 < n2) {
				break;
			}
			count++;
		}

		if (nn1 < nn2) {
			System.out.println(1);
		} else {
			System.out.println(count + 1);
		}
	}
}
