import java.util.*;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  }
} import java.util.*; util.* java public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  }
} Main public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  } main {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int K = sc.nextInt(); K sc.nextInt() sc.nextInt sc sc.close() sc.close sc boolean loop = true; loop true int ans = 1; ans 1 while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    } loop {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    } if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      } (N / K) != 0 (N / K) N K 0 {
        N = (N / K);
        ans++;
        continue;
      } N = (N / K) N (N / K) N K ans++ ans continue; loop = false loop false System.out.printf("%d", ans) System.out.printf System.out System System.out "%d" ans String args[] args public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  }
} public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  }
} Main
import java.util.*;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    
    int N = sc.nextInt();
    int K = sc.nextInt();
    sc.close();

    boolean loop = true;
    int ans = 1;
    while (loop) {
      if ((N / K) != 0) {
        N = (N / K);
        ans++;
        continue;
      }
      loop = false;
    }
    System.out.printf("%d", ans) ;
  }
}