import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    }
} Main public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    } main {
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long n n k k con con tmp; tmp n=scan.nextLong() n scan.nextLong() scan.nextLong scan k=scan.nextLong() k scan.nextLong() scan.nextLong scan con=0 con 0 tmp=1 tmp 1 while(tmp<=n){
            tmp*=k;
            con+=1;
        } tmp<=n tmp n {
            tmp*=k;
            con+=1;
        } tmp*=k tmp k con+=1 con 1 System.out.println(con) System.out.println System.out System System.out con String[]args args public class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    }
} public class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        long n,k,con,tmp;
        n=scan.nextLong();
        k=scan.nextLong();
        con=0;
        tmp=1;
        while(tmp<=n){
            tmp*=k;
            con+=1;
        }
        System.out.println(con);
    }
}