import java.util.*;

class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int K = scan.nextInt();
        int ans=0;

        do{
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        }while(N/K !=0);

        System.out.println(ans+1);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int K = scan.nextInt();
        int ans=0;

        do{
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        }while(N/K !=0);

        System.out.println(ans+1);
    }
} Main public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int K = scan.nextInt();
        int ans=0;

        do{
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        }while(N/K !=0);

        System.out.println(ans+1);
    } main {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int K = scan.nextInt();
        int ans=0;

        do{
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        }while(N/K !=0);

        System.out.println(ans+1);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan int ans=0; ans 0 do{
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        }while(N/K !=0); N/K !=0 N/K N K 0 {
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        } if(N/K != 0){
                ans +=1;
                N /= K;
            } N/K != 0 N/K N K 0 {
                ans +=1;
                N /= K;
            } ans +=1 ans 1 N /= K N K System.out.println(ans+1) System.out.println System.out System System.out ans+1 ans 1 String[]args args
import java.util.*;

class Main{
    public static void main(String[]args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int K = scan.nextInt();
        int ans=0;

        do{
            if(N/K != 0){
                ans +=1;
                N /= K;
            }
        }while(N/K !=0);

        System.out.println(ans+1);
    }
}
