import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	} 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 cnt=0; cnt 0 while(n>0) {
			n=n/k;
			cnt++;
		} n>0 n 0 {
			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 sc.close() sc.close sc public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int k=sc.nextInt();

		int cnt=0;
		while(n>0) {
			n=n/k;
			cnt++;
		}
		System.out.println(cnt);
		sc.close();
	}
}
