import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int k = sc.nextInt();
	    int r;
	    int count = 1;
	    r = n / k;
	    while(r != 0){
	        count ++;
	        r = r / k;
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util public class Main {

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

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int k = sc.nextInt();
	    int r;
	    int count = 1;
	    r = n / k;
	    while(r != 0){
	        count ++;
	        r = r / k;
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
	    int n = sc.nextInt();
	    int k = sc.nextInt();
	    int r;
	    int count = 1;
	    r = n / k;
	    while(r != 0){
	        count ++;
	        r = r / k;
        }
        System.out.println(count);
    }
}