import java.util.*;
//import java.util.stream.Collectors;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int k = Integer.parseInt(sc.next()); k Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int result = 0; result 0 for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		} int i=0; int i=0; i 0 i++ i++ i {
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		} {
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		} if(Math.pow(k, i) > n){
				result = i;
				break;
			} Math.pow(k, i) > n Math.pow(k, i) Math.pow Math k i n {
				result = i;
				break;
			} result = i result i break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	}
} Main
import java.util.*;
//import java.util.stream.Collectors;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int n = Integer.parseInt(sc.next());
		int k = Integer.parseInt(sc.next());
		int result = 0;
		for(int i=0; ; i++){
			if(Math.pow(k, i) > n){
				result = i;
				break;
			}
		}
		System.out.println(result);
	}
}
