
import java.util.Scanner;

/**
 * @author yoshizaki
 *
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    }
} Main public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    } main {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    } Scanner scanner= new Scanner(System.in); scanner new Scanner(System.in) int num = scanner.nextInt(); num scanner.nextInt() scanner.nextInt scanner int base = scanner.nextInt(); base scanner.nextInt() scanner.nextInt scanner String ans = Integer.toString(num, base); ans Integer.toString(num, base) Integer.toString Integer num base System.out.println(ans.length()) System.out.println System.out System System.out ans.length() ans.length ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    }
} Main

import java.util.Scanner;

/**
 * @author yoshizaki
 *
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner= new Scanner(System.in);
        int num = scanner.nextInt();
        int base = scanner.nextInt();
        String ans = Integer.toString(num, base);
        System.out.println(ans.length());
    }
}
