import java.io.*;
import java.util.*;

public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    }
}

class Solver {
    public void solve(long N, long K) {
        long ans = 0;
        while (N > 0) {
            N /= K;
            ans++;
        }
        System.out.println(ans);
    }
}
 import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    }
} Main public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    } main {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N; N N = sc.nextLong() N sc.nextLong() sc.nextLong sc long K; K K = sc.nextLong() K sc.nextLong() sc.nextLong sc final Solver solver = new Solver(); solver new Solver() solver.solve(N, K) solver.solve solver N K final String[] args args class Solver {
    public void solve(long N, long K) {
        long ans = 0;
        while (N > 0) {
            N /= K;
            ans++;
        }
        System.out.println(ans);
    }
} Solver public void solve(long N, long K) {
        long ans = 0;
        while (N > 0) {
            N /= K;
            ans++;
        }
        System.out.println(ans);
    } solve {
        long ans = 0;
        while (N > 0) {
            N /= K;
            ans++;
        }
        System.out.println(ans);
    } long ans = 0; ans 0 while (N > 0) {
            N /= K;
            ans++;
        } N > 0 N 0 {
            N /= K;
            ans++;
        } N /= K N K ans++ ans System.out.println(ans) System.out.println System.out System System.out ans long N N long K K public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    }
} public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    public static void main(final String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        long N;
        N = sc.nextLong();
        long K;
        K = sc.nextLong();

        final Solver solver = new Solver();
        solver.solve(N, K);
    }
}

class Solver {
    public void solve(long N, long K) {
        long ans = 0;
        while (N > 0) {
            N /= K;
            ans++;
        }
        System.out.println(ans);
    }
}

