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