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 P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+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 P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+1);
	}
} Main public static void main (String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+1);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+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 P = K; P K int i = 0; i 0 while(P <= N) {
			P = P*K;
			i++;
		} P <= N P N {
			P = P*K;
			i++;
		} P = P*K P P*K P K i++ i System.out.println(i+1) System.out.println System.out System System.out i+1 i 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 P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+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 P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+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 P = K;
		int i = 0;
		while(P <= N) {
			P = P*K;
			i++;
		}
		System.out.println(i+1);
	}
}