

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    } main {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double val = sc.nextInt(); val sc.nextInt() sc.nextInt sc double base = sc.nextInt(); base sc.nextInt() sc.nextInt sc double count = 0; count 0 while (val >= base) {
            val = (val/base);
            count++;
        } val >= base val base {
            val = (val/base);
            count++;
        } val = (val/base) val (val/base) val base count++ count System.out.println((int) (count + 1)) System.out.println System.out System System.out (int) (count + 1) count 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    }
} Main


import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double val = sc.nextInt();
        double base = sc.nextInt();
        double count = 0;
        while (val >= base) {
            val = (val/base);
            count++;
        }
        System.out.println((int) (count + 1));
    }
}
