import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
import java.util.HashSet;
import java.util.*;

public class Main {
		public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		}
	
	
} import java.io.*; io.* java import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util import java.util.*; util.* java public class Main {
		public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		}
	
	
} Main public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		} main {
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) PrintWriter pw= new PrintWriter(System.out); pw new PrintWriter(System.out) 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 int temp=1; temp 1 while(n>=Math.pow(k, temp)) {
				temp++;
			} n>=Math.pow(k, temp) n Math.pow(k, temp) Math.pow Math k temp {
				temp++;
			} temp++ temp pw.println(temp) pw.println pw temp sc.close() sc.close sc pw.close() pw.close pw String[] args args public class Main {
		public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		}
	
	
} public class Main {
		public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		}
	
	
} Main
import java.io.*;
import java.util.Arrays;
import java.util.Scanner;
import java.util.HashSet;
import java.util.*;

public class Main {
		public static void main(String[] args) throws Exception{
			Scanner sc=new Scanner(System.in);
			PrintWriter pw= new PrintWriter(System.out);
			int n=sc.nextInt();
			int k=sc.nextInt();
			int count=0;
			int temp=1;
			while(n>=Math.pow(k, temp)) {
				temp++;
			}
			pw.println(temp);
			sc.close();
			pw.close();
			
		}
	
	
}
