import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc double A = Math.log(N) / Math.log(K); A Math.log(N) / Math.log(K) Math.log(N) Math.log Math N Math.log(K) Math.log Math K for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    } int n = 0; int n = 0; n 0 n <= A n A n++ n++ n {
      if(A < n+1 ){System.out.println( n+1 );};
    } {
      if(A < n+1 ){System.out.println( n+1 );};
    } if(A < n+1 ){System.out.println( n+1 );} A < n+1 A n+1 n 1 {System.out.println( n+1 );} System.out.println( n+1 ) System.out.println System.out System System.out n+1 n 1 String[] args args public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  }
} public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  }
} Main
import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int K = sc.nextInt();
    double A = Math.log(N) / Math.log(K);
    for(int n = 0;n <= A ;n++){
      if(A < n+1 ){System.out.println( n+1 );};
    };
  }
}