import java.util.*;

class Main {
	Scanner sc;
	int N, K;
	
	private void calc() {
		sc = new Scanner(System.in);
		N = sc.nextInt();
		K = sc.nextInt();
		
		int d = 1;
		while (N >= K) {
			d++;
			N /= K;
		}
		System.out.println(d);
	}

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

	public static void main(String[] args) {
		new Main().calc();
	}
} Main Scanner sc; sc int N N K; K private void calc() {
		sc = new Scanner(System.in);
		N = sc.nextInt();
		K = sc.nextInt();
		
		int d = 1;
		while (N >= K) {
			d++;
			N /= K;
		}
		System.out.println(d);
	} calc {
		sc = new Scanner(System.in);
		N = sc.nextInt();
		K = sc.nextInt();
		
		int d = 1;
		while (N >= K) {
			d++;
			N /= K;
		}
		System.out.println(d);
	} sc = new Scanner(System.in) sc new Scanner(System.in) N = sc.nextInt() N sc.nextInt() sc.nextInt sc K = sc.nextInt() K sc.nextInt() sc.nextInt sc int d = 1; d 1 while (N >= K) {
			d++;
			N /= K;
		} N >= K N K {
			d++;
			N /= K;
		} d++ d N /= K N K System.out.println(d) System.out.println System.out System System.out d public static void main(String[] args) {
		new Main().calc();
	} main {
		new Main().calc();
	} new Main().calc() new Main().calc new Main() String[] args args
import java.util.*;

class Main {
	Scanner sc;
	int N, K;
	
	private void calc() {
		sc = new Scanner(System.in);
		N = sc.nextInt();
		K = sc.nextInt();
		
		int d = 1;
		while (N >= K) {
			d++;
			N /= K;
		}
		System.out.println(d);
	}

	public static void main(String[] args) {
		new Main().calc();
	}
}
