import java.util.*;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    }
} import java.util.*; util.* java import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    } 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 retA = ""; retA "" String retB = ""; retB "" for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        } int i=0; int i=0; i 0 i<b i b i++ i++ i {
            retA += String.valueOf(a);
        } {
            retA += String.valueOf(a);
        } retA += String.valueOf(a) retA String.valueOf(a) String.valueOf String a for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        } int i=0; int i=0; i 0 i<a i a i++ i++ i {
            retB += String.valueOf(b);
        } {
            retB += String.valueOf(b);
        } retB += String.valueOf(b) retB String.valueOf(b) String.valueOf String b String ret = retA.length()>retB.length() ? retA : retB; ret retA.length()>retB.length() ? retA : retB retA.length()>retB.length() retA.length() retA.length retA retB.length() retB.length retB retA retB System.out.println(ret) System.out.println System.out System System.out ret String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    }
} Main
import java.util.*;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        String retA = "";
        String retB = "";
        for(int i=0;i<b;i++){
            retA += String.valueOf(a);
        }
        for(int i=0;i<a;i++){
            retB += String.valueOf(b);
        }
        String ret = retA.length()>retB.length() ? retA : retB;
        System.out.println(ret);
    }
}
