import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int K = scanner.nextInt(); K scanner.nextInt() scanner.nextInt scanner int cnt = 1; cnt 1 while(N>=K){
			N = N/K;
			cnt++;
		} N>=K N K {
			N = N/K;
			cnt++;
		} N = N/K N N/K N K cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int K = scanner.nextInt();
		int cnt = 1;
		while(N>=K){
			N = N/K;
			cnt++;
		}
		System.out.println(cnt);
	}

}
