
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	}

} 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();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	}

} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	} main {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) long n=sc.nextLong(); n sc.nextLong() sc.nextLong sc long k=sc.nextLong(); k sc.nextLong() sc.nextLong sc long x=k; x k int c=1; c 1 while(x<=n) {
			x=k*x;
			c++;
		} x<=n x n {
			x=k*x;
			c++;
		} x=k*x x k*x k x c++ c System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	}

} Main

import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long n=sc.nextLong();
		long k=sc.nextLong();
		long x=k;
		int c=1;
		while(x<=n) {
			x=k*x;
			c++;
		}
		System.out.println(c);

	}

}
