import java.util.*;
class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int r = sc.nextInt();
      int c = sc.nextInt();


			System.out.println(keta(r, c, 1,1));


      
    }
    public static long calc(long a,long b){
      System.out.println(factorial(a)+" "+factorial(b));
      return factorial(a+b)/(factorial(a)*factorial(b));
    }

		public static int keta(int a, int b, int c,int i){

			c = c*b;
			if(c > a){
				return i;
			}
			return keta(a,b,c,i+1);
		}

    public static long factorial(long n){
      if(n == 0){
        return new Long(1);
       }
       System.out.println(n * factorial(n-1));

      return n * factorial(n-1);
    }
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int r = sc.nextInt();
      int c = sc.nextInt();


			System.out.println(keta(r, c, 1,1));


      
    }
    public static long calc(long a,long b){
      System.out.println(factorial(a)+" "+factorial(b));
      return factorial(a+b)/(factorial(a)*factorial(b));
    }

		public static int keta(int a, int b, int c,int i){

			c = c*b;
			if(c > a){
				return i;
			}
			return keta(a,b,c,i+1);
		}

    public static long factorial(long n){
      if(n == 0){
        return new Long(1);
       }
       System.out.println(n * factorial(n-1));

      return n * factorial(n-1);
    }
} Main public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int r = sc.nextInt();
      int c = sc.nextInt();


			System.out.println(keta(r, c, 1,1));


      
    } main {
      Scanner sc = new Scanner(System.in);
      int r = sc.nextInt();
      int c = sc.nextInt();


			System.out.println(keta(r, c, 1,1));


      
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int r = sc.nextInt(); r sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc System.out.println(keta(r, c, 1,1)) System.out.println System.out System System.out keta(r, c, 1,1) keta r c 1 1 String args[] args public static long calc(long a,long b){
      System.out.println(factorial(a)+" "+factorial(b));
      return factorial(a+b)/(factorial(a)*factorial(b));
    } calc {
      System.out.println(factorial(a)+" "+factorial(b));
      return factorial(a+b)/(factorial(a)*factorial(b));
    } System.out.println(factorial(a)+" "+factorial(b)) System.out.println System.out System System.out factorial(a)+" "+factorial(b) factorial(a)+" "+factorial(b) factorial(a) factorial a " " factorial(b) factorial b return factorial(a+b)/(factorial(a)*factorial(b)); factorial(a+b)/(factorial(a)*factorial(b)) factorial(a+b) factorial a+b a b (factorial(a)*factorial(b)) factorial(a) factorial a factorial(b) factorial b long a a long b b public static int keta(int a, int b, int c,int i){

			c = c*b;
			if(c > a){
				return i;
			}
			return keta(a,b,c,i+1);
		} keta {

			c = c*b;
			if(c > a){
				return i;
			}
			return keta(a,b,c,i+1);
		} c = c*b c c*b c b if(c > a){
				return i;
			} c > a c a {
				return i;
			} return i; i return keta(a,b,c,i+1); keta(a,b,c,i+1) keta a b c i+1 i 1 int a a int b b int c c int i i public static long factorial(long n){
      if(n == 0){
        return new Long(1);
       }
       System.out.println(n * factorial(n-1));

      return n * factorial(n-1);
    } factorial {
      if(n == 0){
        return new Long(1);
       }
       System.out.println(n * factorial(n-1));

      return n * factorial(n-1);
    } if(n == 0){
        return new Long(1);
       } n == 0 n 0 {
        return new Long(1);
       } return new Long(1); new Long(1) System.out.println(n * factorial(n-1)) System.out.println System.out System System.out n * factorial(n-1) n factorial(n-1) factorial n-1 n 1 return n * factorial(n-1); n * factorial(n-1) n factorial(n-1) factorial n-1 n 1 long n n
import java.util.*;
class Main{
	public static void main(String args[]){
      Scanner sc = new Scanner(System.in);
      int r = sc.nextInt();
      int c = sc.nextInt();


			System.out.println(keta(r, c, 1,1));


      
    }
    public static long calc(long a,long b){
      System.out.println(factorial(a)+" "+factorial(b));
      return factorial(a+b)/(factorial(a)*factorial(b));
    }

		public static int keta(int a, int b, int c,int i){

			c = c*b;
			if(c > a){
				return i;
			}
			return keta(a,b,c,i+1);
		}

    public static long factorial(long n){
      if(n == 0){
        return new Long(1);
       }
       System.out.println(n * factorial(n-1));

      return n * factorial(n-1);
    }
}
