import java.util.Scanner;

public class Main {
	static String s = "";

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	static String s = "";

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	}

} Main static String s = ""; s "" public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	} 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 n = N; n N int count = 0; count 0 do {
			n = n / K;
			count++;
		}while(n != 0); n != 0 n 0 {
			n = n / K;
			count++;
		} n = n / K n n / K n K count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	static String s = "";

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	}

} public class Main {
	static String s = "";

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	}

} Main
import java.util.Scanner;

public class Main {
	static String s = "";

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();

		int n = N;
		int count = 0;
		do {
			n = n / K;
			count++;
		}while(n != 0);

		System.out.println(count);
	}

}
