import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	} main {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double n = sc.nextDouble(); n sc.nextDouble() sc.nextDouble sc double k = sc.nextDouble(); k sc.nextDouble() sc.nextDouble sc double cnt = 0; cnt 0 while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		} true {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		} if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			} n < Math.pow(k,cnt) n Math.pow(k,cnt) Math.pow Math k cnt {
				System.out.println((int)cnt);
				break;
			} System.out.println((int)cnt) System.out.println System.out System System.out (int)cnt break; cnt++ cnt String[] args args public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	}
} public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
//		String s = sc.next();
//		int n = sc.nextInt();
		double n = sc.nextDouble();
		double k = sc.nextDouble();

		double cnt = 0;
		while(true) {
			if(n < Math.pow(k,cnt)) {
				System.out.println((int)cnt);
				break;
			}
			cnt++;
		}

	}
}
