import java.util.Scanner;
class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int k = K;
        int i = 1;
        while (N >= k) {
        		k *= K;
        		i++;
        }
        System.out.println(i);
    }
}  import java.util.Scanner; Scanner java.util class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int k = K;
        int i = 1;
        while (N >= k) {
        		k *= K;
        		i++;
        }
        System.out.println(i);
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int k = K;
        int i = 1;
        while (N >= k) {
        		k *= K;
        		i++;
        }
        System.out.println(i);
    } main {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int k = K;
        int i = 1;
        while (N >= k) {
        		k *= K;
        		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 K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int k = K; k K int i = 1; i 1 while (N >= k) {
        		k *= K;
        		i++;
        } N >= k N k {
        		k *= K;
        		i++;
        } k *= K k K i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args
import java.util.Scanner;
class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int k = K;
        int i = 1;
        while (N >= k) {
        		k *= K;
        		i++;
        }
        System.out.println(i);
    }
} 