import java.util.*;

public class Main{
	public static void main(String arg[]){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String arg[]){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	}
} Main public static void main(String arg[]){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	} main {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc int i=0; i 0 while(n>0){
			n=n/b;
			i++;
		} n>0 n 0 {
			n=n/b;
			i++;
		} n=n/b n n/b n b i++ i System.out.println(i) System.out.println System.out System System.out i String arg[] arg public class Main{
	public static void main(String arg[]){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	}
} public class Main{
	public static void main(String arg[]){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	}
} Main
import java.util.*;

public class Main{
	public static void main(String arg[]){
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int b=sc.nextInt();
		int i=0;
		while(n>0){
			n=n/b;
			i++;
		}
		System.out.println(i);
	}
}