import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    }
} import java.util.Scanner; Scanner 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();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    } 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 for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        } int i= 1; int i= 1; i 1 i<Integer.MAX_VALUE i Integer.MAX_VALUE Integer Integer.MAX_VALUE i++ i++ i {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        } {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        } int min = (int)Math.pow(k, i-1); min (int)Math.pow(k, i-1) Math.pow Math k i-1 i 1 int max = (int)Math.pow(k, i); max (int)Math.pow(k, i) Math.pow Math k i if (min <= n && n < max) {
                System.out.println(i);
                return;
            } min <= n && n < max min <= n min n n < max n max {
                System.out.println(i);
                return;
            } System.out.println(i) System.out.println System.out System System.out i return; 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();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        for (int i= 1;i<Integer.MAX_VALUE;i++) {
            int min = (int)Math.pow(k, i-1);
            int max = (int)Math.pow(k, i);
            if (min <= n && n < max) {
                System.out.println(i);
                return;
            }
        }
    }
}