import java.util.Scanner;

public class Main {

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int K =sc.nextInt();
		int con = 0;
		while (N >= K) {
			con++;
			N = N / K;
		}
		con++;
		System.out.println(con);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int K =sc.nextInt();
		int con = 0;
		while (N >= K) {
			con++;
			N = N / K;
		}
		con++;
		System.out.println(con);
	} main {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int K =sc.nextInt();
		int con = 0;
		while (N >= K) {
			con++;
			N = N / K;
		}
		con++;
		System.out.println(con);
	} 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 con = 0; con 0 while (N >= K) {
			con++;
			N = N / K;
		} N >= K N K {
			con++;
			N = N / K;
		} con++ con N = N / K N N / K N K con++ con System.out.println(con) System.out.println System.out System System.out con String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int K =sc.nextInt();
		int con = 0;
		while (N >= K) {
			con++;
			N = N / K;
		}
		con++;
		System.out.println(con);
	}
} public class Main {

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N =sc.nextInt();
		int K =sc.nextInt();
		int con = 0;
		while (N >= K) {
			con++;
			N = N / K;
		}
		con++;
		System.out.println(con);
	}
}