import java.io.*;
import java.util.*;

class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    int k = Integer.parseInt(scan.next()); //進数
    int d; //割られる数
    int count; //割った数
    
    d = n;
    
    if(d >= k){
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    }
    else{
      count = 0;
    }    
    System.out.println(count + 1);
    
  }
} import java.io.*; io.* java import java.util.*; util.* java class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    int k = Integer.parseInt(scan.next()); //進数
    int d; //割られる数
    int count; //割った数
    
    d = n;
    
    if(d >= k){
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    }
    else{
      count = 0;
    }    
    System.out.println(count + 1);
    
  }
} Main public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    int k = Integer.parseInt(scan.next()); //進数
    int d; //割られる数
    int count; //割った数
    
    d = n;
    
    if(d >= k){
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    }
    else{
      count = 0;
    }    
    System.out.println(count + 1);
    
  } main {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    int k = Integer.parseInt(scan.next()); //進数
    int d; //割られる数
    int count; //割った数
    
    d = n;
    
    if(d >= k){
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    }
    else{
      count = 0;
    }    
    System.out.println(count + 1);
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int k = Integer.parseInt(scan.next()); k Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int d; d int count; count d = n d n if(d >= k){
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    }
    else{
      count = 0;
    } d >= k d k {
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    } for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      } count = 0; count = 0 count 0 (d / k) >= k (d / k) d k k count ++ count ++ count {
        d = d / k;
      } {
        d = d / k;
      } d = d / k d d / k d k count ++ count {
      count = 0;
    } count = 0 count 0 System.out.println(count + 1) System.out.println System.out System System.out count + 1 count 1 String[] arg arg
import java.io.*;
import java.util.*;

class Main
{
  public static void main (String[] arg)
  {
    Scanner scan = new Scanner(System.in);
    int n = Integer.parseInt(scan.next()); //整数
    int k = Integer.parseInt(scan.next()); //進数
    int d; //割られる数
    int count; //割った数
    
    d = n;
    
    if(d >= k){
      for(count = 0; (d / k) >= k; count ++){
        d = d / k;
      }
      count ++;
    }
    else{
      count = 0;
    }    
    System.out.println(count + 1);
    
  }
}