import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    }
} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int i = 0; i 0 while(a > 0){
            a = a / b;
            i++;
        } a > 0 a 0 {
            a = a / b;
            i++;
        } a = a / b a a / b a b i++ i System.out.println(i) System.out.println System.out System System.out i String args[] args public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    }
} public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int i = 0;
        while(a > 0){
            a = a / b;
            i++;
        }
        System.out.println(i);

    }
}