import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  }
} import java.util.*; util.* java import java.util.Collections; Collections java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc sc.close() sc.close sc String C = Integer.toString(A, B); C Integer.toString(A, B) Integer.toString Integer A B System.out.println(C.length()) System.out.println System.out System System.out C.length() C.length C String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  }
} Main
import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    String C = Integer.toString(A, B);
    System.out.println(C.length());
  }
}
