import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N N R; R N= sc.nextInt() N sc.nextInt() sc.nextInt sc R= sc.nextInt() R sc.nextInt() sc.nextInt sc int i=0; i 0 for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		} i=1; i=1 i 1 i<100 i 100 i++ i++ i {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		} {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		} N=N/R N N/R N R if (N==0) {
				System.out.println(i);
				return;
			} N==0 N 0 {
				System.out.println(i);
				return;
			} System.out.println(i) System.out.println System.out System System.out i return; String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N,R;
		N= sc.nextInt();
		R= sc.nextInt();
		int i=0;
		for (i=1;i<100;i++) {
			N=N/R;
			if (N==0) {
				System.out.println(i);
				return;
			}
		}
	}

}