import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			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 K = sc.nextLong(); K sc.nextLong() sc.nextLong sc double ch = Math.log(N)/Math.log(K); ch Math.log(N)/Math.log(K) Math.log(N) Math.log Math N Math.log(K) Math.log Math K int ans = (int)Math.ceil(ch); ans (int)Math.ceil(ch) Math.ceil Math ch if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		} ans == ch ans ch {
			System.out.println(ans+1);
		} System.out.println(ans+1) System.out.println System.out System System.out ans+1 ans 1 {
			System.out.println(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(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long N = sc.nextLong(), K = sc.nextLong();
		double ch = Math.log(N)/Math.log(K);
		int ans = (int)Math.ceil(ch);
		if(ans == ch) {
			System.out.println(ans+1);
		}else{
			System.out.println(ans);
		}
	}
}