//import java.lang.Math;
import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int count = 0;
        for(int i = 0 ; n != 0 ; i++){
            n = n / k;
            count++;
        }
        System.out.print(count);
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int count = 0;
        for(int i = 0 ; n != 0 ; i++){
            n = n / k;
            count++;
        }
        System.out.print(count);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int count = 0;
        for(int i = 0 ; n != 0 ; i++){
            n = n / k;
            count++;
        }
        System.out.print(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int count = 0;
        for(int i = 0 ; n != 0 ; i++){
            n = n / k;
            count++;
        }
        System.out.print(count);
    } 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 count = 0; count 0 for(int i = 0 ; n != 0 ; i++){
            n = n / k;
            count++;
        } int i = 0 ; int i = 0 ; i 0 n != 0 n 0 i++ i++ i {
            n = n / k;
            count++;
        } {
            n = n / k;
            count++;
        } n = n / k n n / k n k count++ count System.out.print(count) System.out.print System.out System System.out count String[] args args
//import java.lang.Math;
import java.util.Scanner;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();

        int count = 0;
        for(int i = 0 ; n != 0 ; i++){
            n = n / k;
            count++;
        }
        System.out.print(count);
    }
}