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();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    }
} 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();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    } 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 int keta = 1; keta 1 for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        } int i=0; int i=0; i 0 i++ i++ i {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        } {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        } N = N / K N N / K N K if(N == 0) {
                break;
            } N == 0 N 0 {
                break;
            } break; keta++ keta System.out.println(keta) System.out.println System.out System System.out keta 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();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    }
} 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();
        
        int keta = 1;
        for (int i=0;;i++) {
            N = N / K;
            if(N == 0) {
                break;
            }
            keta++;
        }
        
        System.out.println(keta);
    }
}
