import java.util.*;
import java.lang.*;
public 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; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java public 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; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	}
} 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; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	} main {
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		int count = 0;
		for( int i=0; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	} 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; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		} int i=0; int i=0; i 0 i<40 i 40 i++ i++ i {
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		} {
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		} if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			} N>=K N K {
				count++;
				N = N/K;
			} count++ count N = N/K N N/K N K {
				break;
			} break; System.out.println(count+1) System.out.println System.out System System.out count+1 count 1 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 count = 0;
		for( int i=0; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	}
} public 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; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	}
} Main
import java.util.*;
import java.lang.*;
public 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; i<40; i++ ){
			if( N>=K ){
				count++;
				N = N/K;
			}else{
				break;
			}
		}
		System.out.println(count+1);
	}
}