import java.util.*;

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

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    }

} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    }

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

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    } main {
        Scanner sc = new Scanner(System.in);

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer a = sc.nextInt(); a sc.nextInt() sc.nextInt sc Integer b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String stra = String.valueOf(a); stra String.valueOf(a) String.valueOf String a String strb = String.valueOf(b); strb String.valueOf(b) String.valueOf String b String c = ""; c "" String d = ""; d "" for (int j = 0; j < b; j++) {
            c += stra;
        } int j = 0; int j = 0; j 0 j < b j b j++ j++ j {
            c += stra;
        } {
            c += stra;
        } c += stra c stra for (int j = 0; j < a; j++) {
            d += strb;
        } int j = 0; int j = 0; j 0 j < a j a j++ j++ j {
            d += strb;
        } {
            d += strb;
        } d += strb d strb int intc = Integer.parseInt(c); intc Integer.parseInt(c) Integer.parseInt Integer c int intd = Integer.parseInt(d); intd Integer.parseInt(d) Integer.parseInt Integer d if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        } a < b a b {
            System.out.println(intc);
        } System.out.println(intc) System.out.println System.out System System.out intc {
            System.out.println(intd);
        } System.out.println(intd) System.out.println System.out System System.out intd String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    }

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

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    }

} Main
import java.util.*;

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

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

        String stra = String.valueOf(a);
        String strb = String.valueOf(b);

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

        for (int j = 0; j < b; j++) {
            c += stra;
        }

        for (int j = 0; j < a; j++) {
            d += strb;
        }

        int intc = Integer.parseInt(c);
        int intd = Integer.parseInt(d);

        if (a < b) {
            System.out.println(intc);
        } else {
            System.out.println(intd);
        }

    }

}