import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  }
} import java.io.*; io.* java public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] data = br.readLine().split(" "); data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int n = Integer.parseInt(data[0]); n Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 int k = Integer.parseInt(data[1]); k Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 int result = 1; result 1 for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    } int i=0; int i=0; i 0 n/(Math.pow(k, i))>=1 n/(Math.pow(k, i)) n (Math.pow(k, i)) Math.pow Math k i 1 i++ i++ i {
      result = i+1;
    } {
      result = i+1;
    } result = i+1 result i+1 i 1 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  }
} Main
import java.io.*;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] data = br.readLine().split(" ");
    
    int n = Integer.parseInt(data[0]);
    int k = Integer.parseInt(data[1]);
    
    int result = 1;
    
    for(int i=0; n/(Math.pow(k, i))>=1; i++){
      result = i+1;
    }
    System.out.println(result);
  }
}
