import java.util.*;

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

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String S = "";
        
        if(a > b){
            for(int i = 0; i < a; i++){
                S += b;
            }
        } else {
            for(int i = 0; i < b; i++){
                S += a;
            }
        }
        
        System.out.println(S);
    }
}
