//package atcoder;
 
import java.util.*;
import java.math.BigDecimal;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java import java.math.BigDecimal; BigDecimal java.math public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc int ans=0; ans 0 while(N>0) {
			N = N/K;
			ans ++;
		} N>0 N 0 {
			N = N/K;
			ans ++;
		} N = N/K N N/K N K ans ++ ans 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);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	}
} Main
//package atcoder;
 
import java.util.*;
import java.math.BigDecimal;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong();
		int K = sc.nextInt();
		int ans=0;
		
		while(N>0) {
			N = N/K;
			ans ++;
		}
		System.out.println(ans);
	}
}