import javax.print.DocFlavor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class  Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    }
} import javax.print.DocFlavor; DocFlavor javax.print import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class  Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] l = reader.readLine().split(" "); l reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int N = Integer.parseInt(l[0]); N Integer.parseInt(l[0]) Integer.parseInt Integer l[0] l 0 int K = Integer.parseInt(l[1]); K Integer.parseInt(l[1]) Integer.parseInt Integer l[1] l 1 System.out.println(1+(int) (Math.log(N)/Math.log(K))) System.out.println System.out System System.out 1+(int) (Math.log(N)/Math.log(K)) 1 (int) (Math.log(N)/Math.log(K)) Math.log(N) Math.log Math N Math.log(K) Math.log Math K String[] args args public class  Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    }
} public class  Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    }
} Main
import javax.print.DocFlavor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class  Main {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] l = reader.readLine().split(" ");
        int N = Integer.parseInt(l[0]);
        int K = Integer.parseInt(l[1]);
        System.out.println(1+(int) (Math.log(N)/Math.log(K)));
    }
}
