import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args) {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	} main {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	} int N=sc.nextInt() N sc.nextInt() sc.nextInt sc K=sc.nextInt() K sc.nextInt() sc.nextInt sc d=1; d 1 while(true) {
			if(N<K) break;
			N/=K;
			d++;
		} true {
			if(N<K) break;
			N/=K;
			d++;
		} if(N<K) break; N<K N K break; N/=K N K d++ d System.out.println(d) System.out.println System.out System System.out d String[] args args public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	}
} public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	}
} Main
import java.util.Scanner;

public class Main {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int N=sc.nextInt(),K=sc.nextInt(),d=1;
		while(true) {
			if(N<K) break;
			N/=K;
			d++;
		}
		System.out.println(d);
	}
}
