import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int inta = Integer.parseInt(a);
        int intb = Integer.parseInt(b);
        
        if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        }
        
        }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int inta = Integer.parseInt(a);
        int intb = Integer.parseInt(b);
        
        if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        }
        
        }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int inta = Integer.parseInt(a);
        int intb = Integer.parseInt(b);
        
        if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        }
        
        } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int inta = Integer.parseInt(a);
        int intb = Integer.parseInt(b);
        
        if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        }
        
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int inta = Integer.parseInt(a); inta Integer.parseInt(a) Integer.parseInt Integer a int intb = Integer.parseInt(b); intb Integer.parseInt(b) Integer.parseInt Integer b if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        } inta <= intb inta intb {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        } for(int i = 0; i < intb; i++) {
                System.out.print(a);
            } int i = 0; int i = 0; i 0 i < intb i intb i++ i++ i {
                System.out.print(a);
            } {
                System.out.print(a);
            } System.out.print(a) System.out.print System.out System System.out a System.out.println("") System.out.println System.out System System.out "" {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        } for(int i = 0; i < inta; i++) {
                System.out.print(b);
            } int i = 0; int i = 0; i 0 i < inta i inta i++ i++ i {
                System.out.print(b);
            } {
                System.out.print(b);
            } System.out.print(b) System.out.print System.out System System.out b System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int inta = Integer.parseInt(a);
        int intb = Integer.parseInt(b);
        
        if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        }
        
        }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int inta = Integer.parseInt(a);
        int intb = Integer.parseInt(b);
        
        if(inta <= intb) {
            for(int i = 0; i < intb; i++) {
                System.out.print(a);
            }
            System.out.println("");
        }else {
            for(int i = 0; i < inta; i++) {
                System.out.print(b);
            }
            System.out.println("");
        }
        
        }
} Main
import java.util.*;

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