import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	} main {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int k = scn.nextInt(); k scn.nextInt() scn.nextInt scn int count = 1; count 1 while(n>=k){
        	n/=k;
          	count++;
        } n>=k n k {
        	n/=k;
          	count++;
        } n/=k n k count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
      	int k = scn.nextInt();
      	int count = 1;
      	while(n>=k){
        	n/=k;
          	count++;
        }
      	System.out.println(count);
	}
}