import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    }
} 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 r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    } main {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int r = sc.nextInt(); r sc.nextInt() sc.nextInt sc int ans=1; ans 1 if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      } n >=r n r {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      } for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      } int i=2; int i=2; i 2 i<=100 i 100 i++ i++ i {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      } {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      } ans++ ans if (Math.pow(r,i)>n) {
          
          break;
        } Math.pow(r,i)>n Math.pow(r,i) Math.pow Math r i n {
          
          break;
        } break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    }
} public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int r = sc.nextInt();
     int ans=1; 
      if (n >=r) {
      for (int i=2;i<=100;i++) {
                  ans++;
        if (Math.pow(r,i)>n) {
          
          break;
        }
      }
      }
      System.out.println(ans);
    }
}