import java.util.Scanner;
class Main{
public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int sc = scanner.nextInt();
    int sc2 = scanner.nextInt();
    String i = Integer.toString(sc,sc2);
    //System.out.println(i);
//    Integer oi = new Integer(sc);
//    int num1 = Integer.parseInt(sc, sc2);
    int valLen = i.length(); 
    System.out.println(valLen);
}
} import java.util.Scanner; Scanner java.util class Main{
public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int sc = scanner.nextInt();
    int sc2 = scanner.nextInt();
    String i = Integer.toString(sc,sc2);
    //System.out.println(i);
//    Integer oi = new Integer(sc);
//    int num1 = Integer.parseInt(sc, sc2);
    int valLen = i.length(); 
    System.out.println(valLen);
}
} Main public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int sc = scanner.nextInt();
    int sc2 = scanner.nextInt();
    String i = Integer.toString(sc,sc2);
    //System.out.println(i);
//    Integer oi = new Integer(sc);
//    int num1 = Integer.parseInt(sc, sc2);
    int valLen = i.length(); 
    System.out.println(valLen);
} main {
    Scanner scanner = new Scanner(System.in);
    int sc = scanner.nextInt();
    int sc2 = scanner.nextInt();
    String i = Integer.toString(sc,sc2);
    //System.out.println(i);
//    Integer oi = new Integer(sc);
//    int num1 = Integer.parseInt(sc, sc2);
    int valLen = i.length(); 
    System.out.println(valLen);
} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int sc = scanner.nextInt(); sc scanner.nextInt() scanner.nextInt scanner int sc2 = scanner.nextInt(); sc2 scanner.nextInt() scanner.nextInt scanner String i = Integer.toString(sc,sc2); i Integer.toString(sc,sc2) Integer.toString Integer sc sc2 int valLen = i.length(); valLen i.length() i.length i System.out.println(valLen) System.out.println System.out System System.out valLen String[] args args
import java.util.Scanner;
class Main{
public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int sc = scanner.nextInt();
    int sc2 = scanner.nextInt();
    String i = Integer.toString(sc,sc2);
    //System.out.println(i);
//    Integer oi = new Integer(sc);
//    int num1 = Integer.parseInt(sc, sc2);
    int valLen = i.length(); 
    System.out.println(valLen);
}
}