import java.util.*;

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int i=1;
        for(;;){
            N/=K;
            if(N==0)break;
            i++;
        }
        System.out.println(i);
    }
} import java.util.*; util.* java class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int i=1;
        for(;;){
            N/=K;
            if(N==0)break;
            i++;
        }
        System.out.println(i);
    }
} Main public static void main(String args[]){
        Scanner sc = new Scanner(System.in);

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int i=1;
        for(;;){
            N/=K;
            if(N==0)break;
            i++;
        }
        System.out.println(i);
    } 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 sc.nextLine() sc.nextLine sc int i=1; i 1 for(;;){
            N/=K;
            if(N==0)break;
            i++;
        } ; {
            N/=K;
            if(N==0)break;
            i++;
        } {
            N/=K;
            if(N==0)break;
            i++;
        } N/=K N K if(N==0)break; N==0 N 0 break; i++ i System.out.println(i) System.out.println System.out System System.out i String args[] args
import java.util.*;

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

        int N = sc.nextInt();
        int K = sc.nextInt();
        sc.nextLine();
        int i=1;
        for(;;){
            N/=K;
            if(N==0)break;
            i++;
        }
        System.out.println(i);
    }
}