import java.util.*;

public class Main{
  public static void main(String...args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  }
}
       import java.util.*; util.* java public class Main{
  public static void main(String...args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  }
} Main public static void main(String...args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  } main {
    Scanner s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int k = s.nextInt(); k s.nextInt() s.nextInt s int c = 1; c 1 while (n / k != 0){
      n/=k; c++;
    } n / k != 0 n / k n k 0 {
      n/=k; c++;
    } n/=k n k 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 s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  }
} public class Main{
  public static void main(String...args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String...args){
    Scanner s = new Scanner(System.in);
    int n = s.nextInt(); int k = s.nextInt();
    int c = 1;
    while (n / k != 0){
      n/=k; c++;
    }
    System.out.println(c);
  }
}
      