import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc int s = 1 s 1 cou = 0; cou 0 long q = 1; q 1 while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        } s == 1 s 1 {
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        } q = q * k q q * k q k cou++ cou if(n < q){
                s = cou;
                s = 0;
            } n < q n q {
                s = cou;
                s = 0;
            } s = cou s cou s = 0 s 0 System.out.println(cou) System.out.println System.out System System.out cou sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long n = sc.nextInt();
        int k = sc.nextInt();
        int s = 1 , cou = 0;
        long q = 1;
        while(s == 1){
            q = q * k;
            cou++;
            if(n < q){
                s = cou;
                s = 0;
            }
        }
        System.out.println(cou);
        sc.close();
    }
}