import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    }
		
		
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    }
		
		
} Main public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    } main {
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    } 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 int cnt = 0; cnt 0 while (N/K!=0) {
			N=	N/K;
			cnt++;
		} N/K!=0 N/K N K 0 {
			N=	N/K;
			cnt++;
		} N=	N/K N N/K N K cnt++ cnt System.out.println(cnt+1) System.out.println System.out System System.out cnt+1 cnt 1 sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    }
		
		
} public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    }
		
		
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      	
		Scanner sc = new Scanner(System.in);
		//String word_before = sc.next();
		
		int N = sc.nextInt();
		int K = sc.nextInt();
		int cnt = 0;
		while (N/K!=0) {
			N=	N/K;
			cnt++;
		}
		
		System.out.println(cnt+1);
      	sc.close();
    }
		
		
}