import java.util.*;
import java.lang.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.util.stream.*; stream.* java.util public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    } main {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer x = Integer.parseInt(scanner.next()); x Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer y = Integer.parseInt(scanner.next()); y Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner List<Integer> total = new ArrayList<Integer>(); total new ArrayList<Integer>() int count =0; count 0 int warizan = x; warizan x for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        } ; {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        } {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        } if (warizan < y) {
                count++;
                break;
            } warizan < y warizan y {
                count++;
                break;
            } count++ count break; int zyouyo = x % y; zyouyo x % y x y warizan = warizan / y warizan warizan / y warizan y count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    }
} public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    }
} Main
import java.util.*;
import java.lang.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        List<Integer> total = new ArrayList<Integer>();
        int count =0;
        int warizan = x;
        for(;;) {
            if (warizan < y) {
                count++;
                break;
            }
            int zyouyo = x % y;
            warizan = warizan / y;
            count++;
        }
        System.out.println(count);
    }
}