import java.util.Scanner;

public class Main{
    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 digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    }
} import java.util.Scanner; Scanner java.util public class Main{
    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 digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    }
} Main 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 digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        int K = Integer.parseInt(sc.next());

        int digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    } 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 digits=1; digits 1 int next=N/K; next N/K N K while(next != 0){
            next = next/K;
            digits = digits + 1;
        } next != 0 next 0 {
            next = next/K;
            digits = digits + 1;
        } next = next/K next next/K next K digits = digits + 1 digits digits + 1 digits 1 System.out.println(digits) System.out.println System.out System System.out digits String[] args args public class Main{
    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 digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    }
} public class Main{
    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 digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    }
} Main
import java.util.Scanner;

public class Main{
    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 digits=1;
        int next=N/K;

        while(next != 0){
            next = next/K;
            digits = digits + 1;
        }
        System.out.println(digits);   

        
    }
}
