import java.util.*;
import java.io.*;
 
public class Main{
    static PrintWriter out = new PrintWriter(System.out);
 
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    }
}  import java.util.*; util.* java import java.io.*; io.* java public class Main{
    static PrintWriter out = new PrintWriter(System.out);
 
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    }
} Main static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int K = Integer.parseInt(sc.next()); K Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int i = 1; i 1 int A = N; A N while(A >= K){
            A = A/K;
            i++;
        } A >= K A K {
            A = A/K;
            i++;
        } A = A/K A A/K A K i++ i System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main{
    static PrintWriter out = new PrintWriter(System.out);
 
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    }
} public class Main{
    static PrintWriter out = new PrintWriter(System.out);
 
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    }
} Main
import java.util.*;
import java.io.*;
 
public class Main{
    static PrintWriter out = new PrintWriter(System.out);
 
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());
        int i = 1;
        int A = N;
        while(A >= K){
            A = A/K;
            i++;
        }
        System.out.println(i);
       
    }
} 