import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    } 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 d = 0; d 0 for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        } d = 0; d = 0 d 0 d < 100 d 100 d++ d++ d {
            if(Math.pow(k,d) > n) {
                break;
            }
        } {
            if(Math.pow(k,d) > n) {
                break;
            }
        } if(Math.pow(k,d) > n) {
                break;
            } Math.pow(k,d) > n Math.pow(k,d) Math.pow Math k d n {
                break;
            } break; System.out.println(d) System.out.println System.out System System.out d String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        
        int d = 0;
        
        for(d = 0; d < 100; d++) {
            if(Math.pow(k,d) > n) {
                break;
            }
        }
        
        System.out.println(d);
    }
}