import java.util.*;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String strA = "";
        String strB = "";
        for (int i = 0; i < b; i++) {
            strA += a;
        }
        for (int i = 0; i < a; i++) {
            strB += b;
        }
        System.out.println(a <= b ? strA : strB);
    }
}