import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	}

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

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	} main {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	} 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 long p = 1; p 1 int r = 0; r 0 while (p <= n) {
			p *= k;
			r++;
		} p <= n p n {
			p *= k;
			r++;
		} p *= k p k r++ r System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();

		long p = 1;
		int r = 0;
		while (p <= n) {
			p *= k;
			r++;
		}

		System.out.println(r);

	}

}
