import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    } main {
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    } Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        } int i = 1; int i = 1; i 1 i <= 50 i 50 i++ i++ i {
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        } {
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        } if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            } n < Math.pow(k, i) n Math.pow(k, i) Math.pow Math k i {
                System.out.println(i);
                return;
            } System.out.println(i) System.out.println System.out System System.out i return; scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        for(int i = 1; i <= 50; i++){
            if(n < Math.pow(k, i)){
                System.out.println(i);
                return;
            }
        }
        scan.close();
    }
}