import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc boolean hantei = true; hantei true int i = 1; i 1 while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        } hantei {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        } if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            } N < Math.pow(K, i) N Math.pow(K, i) Math.pow Math K i {
                System.out.println(i);
                hantei = false;
            } System.out.println(i) System.out.println System.out System System.out i hantei = false hantei false i++ i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        
        boolean hantei = true;
        int i = 1;
        while(hantei) {
            if(N < Math.pow(K, i)) {
                System.out.println(i);
                hantei = false;
            }
            i++;
        }
    }
}