import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    final int N = scan.nextInt();
    final int K = scan.nextInt();
    final String anser = Integer.toString(N, K);
    System.out.println(anser.length());
  }
} import java.util.Scanner; Scanner java.util class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    final int N = scan.nextInt();
    final int K = scan.nextInt();
    final String anser = Integer.toString(N, K);
    System.out.println(anser.length());
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    final int N = scan.nextInt();
    final int K = scan.nextInt();
    final String anser = Integer.toString(N, K);
    System.out.println(anser.length());
  } main {
    Scanner scan = new Scanner(System.in);
    final int N = scan.nextInt();
    final int K = scan.nextInt();
    final String anser = Integer.toString(N, K);
    System.out.println(anser.length());
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) final int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan final int K = scan.nextInt(); K scan.nextInt() scan.nextInt scan final String anser = Integer.toString(N, K); anser Integer.toString(N, K) Integer.toString Integer N K System.out.println(anser.length()) System.out.println System.out System System.out anser.length() anser.length anser String[] args args
import java.util.Scanner;

class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    final int N = scan.nextInt();
    final int K = scan.nextInt();
    final String anser = Integer.toString(N, K);
    System.out.println(anser.length());
  }
}