/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int ans=0;
        while(n > 0)
        {
            n/=k;
            ans++;
        }
        System.out.println(ans);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int ans=0;
        while(n > 0)
        {
            n/=k;
            ans++;
        }
        System.out.println(ans);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int ans=0;
        while(n > 0)
        {
            n/=k;
            ans++;
        }
        System.out.println(ans);
	} main {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int ans=0;
        while(n > 0)
        {
            n/=k;
            ans++;
        }
        System.out.println(ans);
	} 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 ans=0; ans 0 while(n > 0)
        {
            n/=k;
            ans++;
        } n > 0 n 0 {
            n/=k;
            ans++;
        } n/=k n k ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int k=sc.nextInt();
        int ans=0;
        while(n > 0)
        {
            n/=k;
            ans++;
        }
        System.out.println(ans);
	}
}
