import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] a) {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] a) {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    }
} Main public static void main(String[] a) {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    } main {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] t = scan.nextLine().split("\\s"); t scan.nextLine().split("\\s") scan.nextLine().split scan.nextLine() scan.nextLine scan "\\s" int n = Integer.valueOf(t[0]); n Integer.valueOf(t[0]) Integer.valueOf Integer t[0] t 0 int r = Integer.valueOf(t[1]); r Integer.valueOf(t[1]) Integer.valueOf Integer t[1] t 1 int c = n / r; c n / r n r int p = 1; p 1 while (c != 0) {
          	c = c / r;
          	p++;
        } c != 0 c 0 {
          	c = c / r;
          	p++;
        } c = c / r c c / r c r p++ p System.out.print(p) System.out.print System.out System System.out p String[] a a public class Main {
    public static void main(String[] a) {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    }
} public class Main {
    public static void main(String[] a) {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] a) {
        Scanner scan = new Scanner(System.in);
        String[] t = scan.nextLine().split("\\s");
        int n = Integer.valueOf(t[0]);
        int r = Integer.valueOf(t[1]);
        int c = n / r;
      	int p = 1;
        while (c != 0) {
          	c = c / r;
          	p++;
        }
        System.out.print(p);
    }
}