import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	}
} Main public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	} main {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long n = scan.nextLong(); n scan.nextLong() scan.nextLong scan int k = scan.nextInt(); k scan.nextInt() scan.nextInt scan int last = 0; last 0 int count =0; count 0 last = (int)n last (int)n while(last>0) {

			last = last/k;
			count++;
		} last>0 last 0 {

			last = last/k;
			count++;
		} last = last/k last last/k last k count++ count System.out.println(count) System.out.println System.out System System.out count scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		long n = scan.nextLong();
		int k = scan.nextInt();
		int last = 0;
		int count =0;
		last = (int)n;

		while(last>0) {

			last = last/k;
			count++;
		}

		System.out.println(count);

		scan.close();
	}
}
