import java.util.Scanner;
public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	}

} Main public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan String[] strAry = str.split(" "); strAry str.split(" ") str.split str " " int int1 = Integer.parseInt(strAry[0]); int1 Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int int2 = Integer.valueOf(strAry[1]).intValue(); int2 Integer.valueOf(strAry[1]).intValue() Integer.valueOf(strAry[1]).intValue Integer.valueOf(strAry[1]) Integer.valueOf Integer strAry[1] strAry 1 int i = 0; i 0 boolean b = true; b true while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		} b {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		} if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			} int1 <Math.pow(int2, i) int1 Math.pow(int2, i) Math.pow Math int2 i {
				System.out.println(i);
				b = false;
			} System.out.println(i) System.out.println System.out System System.out i b = false b false i++ i scan.close() scan.close scan String args[] args public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	}

} public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String args[]) {
		Scanner scan = new Scanner(System.in);
		String str = scan.nextLine();
		
		String[] strAry = str.split(" ");
		int int1 = Integer.parseInt(strAry[0]);
		int int2 = Integer.valueOf(strAry[1]).intValue();
		
		int i = 0;
		boolean b = true;
		while(b) {
			if(int1 <Math.pow(int2, i)){
				System.out.println(i);
				b = false;
			}
			i++;
		scan.close();
		}
		
	
		
	}

}
