import java.util.Scanner;


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

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	} main {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String ss = sc.next(); ss sc.next() sc.next sc int N = Integer.parseInt(s); N Integer.parseInt(s) Integer.parseInt Integer s int R = Integer.parseInt(ss); R Integer.parseInt(ss) Integer.parseInt Integer ss int cont = 0; cont 0 while(N > 0) {
        	N = N / R;
        	cont ++;
        } N > 0 N 0 {
        	N = N / R;
        	cont ++;
        } N = N / R N N / R N R cont ++ cont System.out.println(cont) System.out.println System.out System System.out cont String[] args args public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	}
} public class Main {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	}
} Main
import java.util.Scanner;


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

		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		String ss = sc.next();


        int N = Integer.parseInt(s);
        int R = Integer.parseInt(ss);

        int cont = 0;
        while(N > 0) {
        	N = N / R;
        	cont ++;
        }
        System.out.println(cont);
	}
}