import java.util.*;
class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt()+1;
    int k=sc.nextInt();
    int m=k;
    int po=1;
    while(m<n){
      m*=k;
      po++;
    }
    System.out.print(po);
  }
} import java.util.*; util.* java class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt()+1;
    int k=sc.nextInt();
    int m=k;
    int po=1;
    while(m<n){
      m*=k;
      po++;
    }
    System.out.print(po);
  }
} Main public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt()+1;
    int k=sc.nextInt();
    int m=k;
    int po=1;
    while(m<n){
      m*=k;
      po++;
    }
    System.out.print(po);
  } main {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt()+1;
    int k=sc.nextInt();
    int m=k;
    int po=1;
    while(m<n){
      m*=k;
      po++;
    }
    System.out.print(po);
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt()+1; n sc.nextInt()+1 sc.nextInt() sc.nextInt sc 1 int k=sc.nextInt(); k sc.nextInt() sc.nextInt sc int m=k; m k int po=1; po 1 while(m<n){
      m*=k;
      po++;
    } m<n m n {
      m*=k;
      po++;
    } m*=k m k po++ po System.out.print(po) System.out.print System.out System System.out po String[]args args
import java.util.*;
class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt()+1;
    int k=sc.nextInt();
    int m=k;
    int po=1;
    while(m<n){
      m*=k;
      po++;
    }
    System.out.print(po);
  }
}
