import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    } main {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan String Ans1 = ""; Ans1 "" String Ans2 = ""; Ans2 "" for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            } int i = 0; int i = 0; i 0 i < b i b i ++ i ++ i {
                Ans1 = Ans1 + String.valueOf(a);
            } {
                Ans1 = Ans1 + String.valueOf(a);
            } Ans1 = Ans1 + String.valueOf(a) Ans1 Ans1 + String.valueOf(a) Ans1 String.valueOf(a) String.valueOf String a for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            } int i = 0; int i = 0; i 0 i < a i a i ++ i ++ i {
                Ans2 = Ans2 + String.valueOf(b);
            } {
                Ans2 = Ans2 + String.valueOf(b);
            } Ans2 = Ans2 + String.valueOf(b) Ans2 Ans2 + String.valueOf(b) Ans2 String.valueOf(b) String.valueOf String b int ques = Ans1.compareTo(Ans2); ques Ans1.compareTo(Ans2) Ans1.compareTo Ans1 Ans2 if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        } ques < 0 ques 0 {
            System.out.println(Ans1);
        } System.out.println(Ans1) System.out.println System.out System System.out Ans1 {
            System.out.println(Ans2);    
        } System.out.println(Ans2) System.out.println System.out System System.out Ans2 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String Ans1 = "";
        String Ans2 = "";
            for(int i = 0; i < b; i ++){
                Ans1 = Ans1 + String.valueOf(a);
            }
            for(int i = 0; i < a; i ++){
                Ans2 = Ans2 + String.valueOf(b);
            }
        int ques = Ans1.compareTo(Ans2);
        if(ques < 0) {
            System.out.println(Ans1);
        } else  {
            System.out.println(Ans2);    
        }    
        
    }
}
