import java.util.Scanner;
public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int k = stdIn.nextInt(); k stdIn.nextInt() stdIn.nextInt stdIn String dec = Integer.toString(n,k); dec Integer.toString(n,k) Integer.toString Integer n k System.out.println(dec.length()) System.out.println System.out System System.out dec.length() dec.length dec String[] args args public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	}

} public class Main{

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		
		int k = stdIn.nextInt();
		
		String dec = Integer.toString(n,k);
		
		System.out.println(dec.length());
	}

}
