import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  } main {
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long n n k k r=0; r 0 n=sc.nextLong() n sc.nextLong() sc.nextLong sc k=sc.nextLong() k sc.nextLong() sc.nextLong sc while((n/(int)Math.pow(k,r))>0){
      r++;
    } (n/(int)Math.pow(k,r))>0 (n/(int)Math.pow(k,r)) n (int)Math.pow(k,r) Math.pow Math k r 0 {
      r++;
    } r++ r System.out.print(r) System.out.print System.out System System.out r String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	long n,k,r=0;
    n=sc.nextLong();
    k=sc.nextLong();
    while((n/(int)Math.pow(k,r))>0){
      r++;
    }
    System.out.print(r);
  }
}