import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        String c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    }
} import java.util.Scanner; Scanner 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 c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        String c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    } main {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        String c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    } 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 c = ""; c "" String d = ""; d "" for (int i = 0; i < a; i++) {
            c += b;
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            c += b;
        } {
            c += b;
        } c += b c b for (int i = 0; i < b; i++) {
            d += a;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            d += a;
        } {
            d += a;
        } d += a d a System.out.println(c.compareTo(d) > 0 ? d : c) System.out.println System.out System System.out c.compareTo(d) > 0 ? d : c c.compareTo(d) > 0 c.compareTo(d) c.compareTo c d 0 d c 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 c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        String c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        String c = "";
        String d = "";

        for (int i = 0; i < a; i++) {
            c += b;
        }

        for (int i = 0; i < b; i++) {
            d += a;
        }

        System.out.println(c.compareTo(d) > 0 ? d : c);
    }
}
