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

public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    }
} Main public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int size = 0; size 0 while (n != 0){
            n /= k;
            size ++;
        } n != 0 n 0 {
            n /= k;
            size ++;
        } n /= k n k size ++ size System.out.println(size) System.out.println System.out System System.out size String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        int size = 0;
        while (n != 0){
            n /= k;
            size ++;
        }
        System.out.println(size);
    }
}
