import java.util.*;

public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    }
} Main public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    } main {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int k = Integer.parseInt(sc.next()); k Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int counter = 0; counter 0 int tmp = n; tmp n while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        } tmp > 0 tmp 0 {
            tmp = tmp / k;
            ++counter;
        } tmp = tmp / k tmp tmp / k tmp k ++counter counter System.out.println(counter) System.out.println System.out System System.out counter String args[] args public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    }
} public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int counter = 0;
        int tmp = n;
        while(tmp > 0) {
            tmp = tmp / k;
            ++counter;
        }
        
        System.out.println(counter);
        
    }
}