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();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	}
} 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();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	} 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 for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		} int i = 1; int i = 1; i 1 i++ i++ i {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		} {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		} if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			} Math.pow(k, i) > n Math.pow(k, i) Math.pow Math k i n {
				System.out.println(i);
				break;
			} System.out.println(i) System.out.println System.out System System.out i break; 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();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int k = sc.nextInt();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	}
} 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();

		for(int i = 1;;i++) {
			if(Math.pow(k, i) > n) {
				System.out.println(i);
				break;
			}
		}
	}
}