

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	}

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

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	} main {

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int k = scanner.nextInt(); k scanner.nextInt() scanner.nextInt scanner int ans = 1; ans 1 while(k <= n) {
			n = n / k ;
			ans++;
		} k <= n k n {
			n = n / k ;
			ans++;
		} n = n / k n n / k n k ans++ ans System.out.println(ans) System.out.println System.out System System.out ans scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int ans = 1;
		//int x = n;


		while(k <= n) {
			n = n / k ;
			ans++;
		}

		System.out.println(ans);

		scanner.close();

	}

}
