    import java.util.*;
    class Main
    {
      public static void main(String args[])
      {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        
        String s1=new String();
        String s2=new String();
        
        for(int i=0; i<a;i++){
          s1+=b;
        }
        for(int i=0;i<b;i++){
          s2+=a;
        }
    	if(s1.compareTo(s2)<1)	System.out.println(s1);
    	else	System.out.println(s2);
      }
    } import java.util.*; util.* java class Main
    {
      public static void main(String args[])
      {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        
        String s1=new String();
        String s2=new String();
        
        for(int i=0; i<a;i++){
          s1+=b;
        }
        for(int i=0;i<b;i++){
          s2+=a;
        }
    	if(s1.compareTo(s2)<1)	System.out.println(s1);
    	else	System.out.println(s2);
      }
    } Main public static void main(String args[])
      {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        
        String s1=new String();
        String s2=new String();
        
        for(int i=0; i<a;i++){
          s1+=b;
        }
        for(int i=0;i<b;i++){
          s2+=a;
        }
    	if(s1.compareTo(s2)<1)	System.out.println(s1);
    	else	System.out.println(s2);
      } main {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        
        String s1=new String();
        String s2=new String();
        
        for(int i=0; i<a;i++){
          s1+=b;
        }
        for(int i=0;i<b;i++){
          s2+=a;
        }
    	if(s1.compareTo(s2)<1)	System.out.println(s1);
    	else	System.out.println(s2);
      } 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 s1=new String(); s1 new String() String s2=new String(); s2 new String() for(int i=0; i<a;i++){
          s1+=b;
        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
          s1+=b;
        } {
          s1+=b;
        } s1+=b s1 b for(int i=0;i<b;i++){
          s2+=a;
        } int i=0; int i=0; i 0 i<b i b i++ i++ i {
          s2+=a;
        } {
          s2+=a;
        } s2+=a s2 a if(s1.compareTo(s2)<1)	System.out.println(s1);
    	else	System.out.println(s2); s1.compareTo(s2)<1 s1.compareTo(s2) s1.compareTo s1 s2 1 System.out.println(s1) System.out.println System.out System System.out s1 System.out.println(s2) System.out.println System.out System System.out s2 String args[] args
    import java.util.*;
    class Main
    {
      public static void main(String args[])
      {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
        
        String s1=new String();
        String s2=new String();
        
        for(int i=0; i<a;i++){
          s1+=b;
        }
        for(int i=0;i<b;i++){
          s2+=a;
        }
    	if(s1.compareTo(s2)<1)	System.out.println(s1);
    	else	System.out.println(s2);
      }
    }