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 digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

        System.out.println(digit);
    }
} 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 digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

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

        int digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

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

        int digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

        System.out.println(digit);
    } 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 digit = 1; digit 1 int num = N; num N while((num /= K) != 0) digit++; (num /= K) != 0 (num /= K) num K 0 digit++ digit System.out.println(digit) System.out.println System.out System System.out digit 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 digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

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

        int digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

        System.out.println(digit);
    }
} 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 digit = 1;
        int num = N;
        while((num /= K) != 0) digit++;

        System.out.println(digit);
    }
}