import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		double log;
		log = Math.log10(N) / Math.log10(K);
		int ans = (int)Math.floor(log) + 1;
		
		System.out.println(ans);


	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		double log;
		log = Math.log10(N) / Math.log10(K);
		int ans = (int)Math.floor(log) + 1;
		
		System.out.println(ans);


	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		double log;
		log = Math.log10(N) / Math.log10(K);
		int ans = (int)Math.floor(log) + 1;
		
		System.out.println(ans);


	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		double log;
		log = Math.log10(N) / Math.log10(K);
		int ans = (int)Math.floor(log) + 1;
		
		System.out.println(ans);


	} 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 double log; log log = Math.log10(N) / Math.log10(K) log Math.log10(N) / Math.log10(K) Math.log10(N) Math.log10 Math N Math.log10(K) Math.log10 Math K int ans = (int)Math.floor(log) + 1; ans (int)Math.floor(log) + 1 (int)Math.floor(log) Math.floor Math log 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		double log;
		log = Math.log10(N) / Math.log10(K);
		int ans = (int)Math.floor(log) + 1;
		
		System.out.println(ans);


	}
}
