import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  } main {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int K = scanner.nextInt(); K scanner.nextInt() scanner.nextInt scanner int n = 0; n 0 while (N > 0) {
      n++;
      N /= K;
    } N > 0 N 0 {
      n++;
      N /= K;
    } n++ n N /= K N K System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int K = scanner.nextInt();
    int n = 0;
    while (N > 0) {
      n++;
      N /= K;
    }
    System.out.println(n);
  }
}
