import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    } main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int count = 0; count 0 while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        } true {
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        } if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          } a >= b a b {
          a = a / b;
          count += 1;
          } a = a / b a a / b a b count += 1 count 1 {
            count+= 1;
            break;
          } count+= 1 count 1 break; System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
        int a = sc.nextInt();
     	int b = sc.nextInt();
        int count = 0;
        
        while(true){
          if(a >= b){
          a = a / b;
          count += 1;
          }else{
            count+= 1;
            break;
          }
        }
		
        
          System.out.println(count);

    }
}