
import java.util.*;
public class Main{
	
	void cal()
	{
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
}



public static void main (String args[])
{
	Main obj= new Main();
	obj.cal();

}
}


 import java.util.*; util.* java public class Main{
	
	void cal()
	{
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
}



public static void main (String args[])
{
	Main obj= new Main();
	obj.cal();

}
} Main void cal()
	{
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
} cal {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc String as="" as "" bs=""; bs "" for(int i=0;i<b;i++)
	{
		as+=a;
	} int i=0; int i=0; i 0 i<b i b i++ i++ i {
		as+=a;
	} {
		as+=a;
	} as+=a as a for(int i=0;i<a;i++)
	{
		bs+=b;
	} int i=0; int i=0; i 0 i<a i a i++ i++ i {
		bs+=b;
	} {
		bs+=b;
	} bs+=b bs b if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	} a<b a b {
		System.out.println(as);
		
		
	} System.out.println(as) System.out.println System.out System System.out as if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	} a>b a b {
		System.out.println(bs);
		
		
	} System.out.println(bs) System.out.println System.out System System.out bs if(a==b)
	{
		System.out.println(bs);
		
		
	} a==b a b {
		System.out.println(bs);
		
		
	} System.out.println(bs) System.out.println System.out System System.out bs sc.close() sc.close sc public static void main (String args[])
{
	Main obj= new Main();
	obj.cal();

} main {
	Main obj= new Main();
	obj.cal();

} Main obj= new Main(); obj new Main() obj.cal() obj.cal obj String args[] args public class Main{
	
	void cal()
	{
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
}



public static void main (String args[])
{
	Main obj= new Main();
	obj.cal();

}
} public class Main{
	
	void cal()
	{
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
}



public static void main (String args[])
{
	Main obj= new Main();
	obj.cal();

}
} Main

import java.util.*;
public class Main{
	
	void cal()
	{
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	String as="",bs="";
	
	for(int i=0;i<b;i++)
	{
		as+=a;
	}
	for(int i=0;i<a;i++)
	{
		bs+=b;
	}
	if(a<b)
	{
		System.out.println(as);
		
		
	}
	else if(a>b)
	{
		System.out.println(bs);
		
		
	}
	else if(a==b)
	{
		System.out.println(bs);
		
		
	}
	sc.close();
	
}



public static void main (String args[])
{
	Main obj= new Main();
	obj.cal();

}
}



