import java.util.ArrayList;
import java.util.Scanner;
import java.util.TreeSet;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int cnt = 0;
		while(n != 0)
		{
			n /= k;
			++cnt;
		}
		System.out.println(cnt);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util import java.util.TreeSet; TreeSet 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 cnt = 0;
		while(n != 0)
		{
			n /= k;
			++cnt;
		}
		System.out.println(cnt);
	}
} Main public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int cnt = 0;
		while(n != 0)
		{
			n /= k;
			++cnt;
		}
		System.out.println(cnt);
	} main {
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int cnt = 0;
		while(n != 0)
		{
			n /= k;
			++cnt;
		}
		System.out.println(cnt);
	} 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 cnt = 0; cnt 0 while(n != 0)
		{
			n /= k;
			++cnt;
		} n != 0 n 0 {
			n /= k;
			++cnt;
		} n /= k n k ++cnt cnt System.out.println(cnt) System.out.println System.out System System.out cnt 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 cnt = 0;
		while(n != 0)
		{
			n /= k;
			++cnt;
		}
		System.out.println(cnt);
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int k = scanner.nextInt();
		int cnt = 0;
		while(n != 0)
		{
			n /= k;
			++cnt;
		}
		System.out.println(cnt);
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;
import java.util.TreeSet;

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