import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+1);
	}
} import java.util.*; util.* 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 temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+1);
	}
} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+1);
	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+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 temp=k; temp k int c=0; c 0 while(temp<=n) {
			temp*=k;
			c++;
		} temp<=n temp n {
			temp*=k;
			c++;
		} temp*=k temp k c++ c System.out.println(c+1) System.out.println System.out System System.out c+1 c 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 temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+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 temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+1);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();
		int temp=k;
		int c=0;
		while(temp<=n) {
			temp*=k;
			c++;
		}
		System.out.println(c+1);
	}
}