import java.util.*;

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

class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int k = stdIn.nextInt();
        int count = 1;
        while(n >= k){
          n = n / k;
          count++;
        }
        System.out.println(count);
    }
}