import java.util.*;
public class Main {
    public static void main(final String[] args){
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    }
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args){
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    }
} Main public static void main(final String[] args){
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    } main {
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc final int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc sc.close() sc.close sc int cnt = 1; cnt 1 while (N >= K) {
            N /= K;
            cnt++;
        } N >= K N K {
            N /= K;
            cnt++;
        } N /= K N K cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt final String[] args args public class Main {
    public static void main(final String[] args){
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    }
} public class Main {
    public static void main(final String[] args){
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    }
} Main
import java.util.*;
public class Main {
    public static void main(final String[] args){
        final Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        final int K = sc.nextInt();
        sc.close();

        int cnt = 1;
        while (N >= K) {
            N /= K;
            cnt++;
        }

        System.out.println(cnt);
    }
}