import java.util.Scanner;

public class Main {

	public static int N;
	public static int K;

	public static void main(String[] args) {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static int N;
	public static int K;

	public static void main(String[] args) {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static int N; N public static int K; K public static void main(String[] args) {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	} main {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	} init() init int ans = 0; ans 0 while (N > 0) {
			ans++;
			N /= K;
		} N > 0 N 0 {
			ans++;
			N /= K;
		} ans++ ans N /= K N K System.out.println(ans) System.out.println System.out System System.out ans String[] args args public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	} init {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			N = sc.nextInt();
			K = sc.nextInt();
		} N = sc.nextInt() N sc.nextInt() sc.nextInt sc K = sc.nextInt() K sc.nextInt() sc.nextInt sc public class Main {

	public static int N;
	public static int K;

	public static void main(String[] args) {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {

	public static int N;
	public static int K;

	public static void main(String[] args) {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static int N;
	public static int K;

	public static void main(String[] args) {
		init();
		int ans = 0;
		while (N > 0) {
			ans++;
			N /= K;
		}
		System.out.println(ans);
	}

	public static void init() {
		Scanner sc = new Scanner(System.in);
		try {
			N = sc.nextInt();
			K = sc.nextInt();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
