import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	} 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 now = 1; now 1 for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		} int i = 0; int i = 0; i 0 true i++ i++ i {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		} {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		} if (now > N) {
				System.out.println(i);
				break;
			} now > N now N {
				System.out.println(i);
				break;
			} System.out.println(i) System.out.println System.out System System.out i break; now *= K now K String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int now = 1;
		for (int i = 0; true; i++) {
			if (now > N) {
				System.out.println(i);
				break;
			}
			now *= K;
		}
	}
}
