import java.util.*;
 
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    }
} Main public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    } main {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in String sa = "" sa "" sb = ""; sb "" for (int i = 0; i < a; i++) sa += b; int i = 0; int i = 0; i 0 i < a i a i++ i++ i sa += b; sa += b sa b for (int i = 0; i < b; i++) sb += a; int i = 0; int i = 0; i 0 i < b i b i++ i++ i sb += a; sb += a sb a if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb); sa.compareTo(sb) < 0 sa.compareTo(sb) sa.compareTo sa sb 0 System.out.println(sa) System.out.println System.out System System.out sa System.out.println(sb) System.out.println System.out System System.out sb in.close() in.close in String[] args args public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    }
} Main
import java.util.*;
 
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        String sa = "", sb = "";
        for (int i = 0; i < a; i++) sa += b;
        for (int i = 0; i < b; i++) sb += a;
        if (sa.compareTo(sb) < 0) System.out.println(sa);
        else System.out.println(sb);
        in.close();
    }
}
