import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String data = sc.nextLine(); data sc.nextLine() sc.nextLine sc String[] array = data.split(" "); array data.split(" ") data.split data " " long n = Long.parseLong(array[0]); n Long.parseLong(array[0]) Long.parseLong Long array[0] array 0 long k = Long.parseLong(array[1]); k Long.parseLong(array[1]) Long.parseLong Long array[1] array 1 long count = 0; count 0 while(n > 0)
        {
            n = n / k;
            count++;
        } n > 0 n 0 {
            n = n / k;
            count++;
        } n = n / k n n / k n k count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
        
        String[] array = data.split(" ");
        long n = Long.parseLong(array[0]);
        long k = Long.parseLong(array[1]);
        
        long count = 0;
        
        while(n > 0)
        {
            n = n / k;
            count++;
        }
        
        System.out.println(count);
    }
}
