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 aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

    }
} 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 aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

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

        String aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        String aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

    } 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 aStr = String.valueOf(a); aStr String.valueOf(a) String.valueOf String a String bStr = String.valueOf(b); bStr String.valueOf(b) String.valueOf String b String aA = ""; aA "" String bB = ""; bB "" for (int i = 0; i < a; i++) {
            aA += bStr;
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            aA += bStr;
        } {
            aA += bStr;
        } aA += bStr aA bStr for (int i = 0; i < b; i++) {
            bB += aStr;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            bB += aStr;
        } {
            bB += aStr;
        } bB += aStr bB aStr if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        } aA.compareTo(bB) < 0 aA.compareTo(bB) aA.compareTo aA bB 0 {
            System.out.println(aA);
        } System.out.println(aA) System.out.println System.out System System.out aA {
            System.out.println(bB);
        } System.out.println(bB) System.out.println System.out System System.out bB 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 aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

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

        String aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

    }
} 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 aStr = String.valueOf(a);
        String bStr = String.valueOf(b);

        String aA = "";
        String bB = "";

        for (int i = 0; i < a; i++) {
            aA += bStr;
        }

        for (int i = 0; i < b; i++) {
            bB += aStr;
        }

        if (aA.compareTo(bB) < 0) {
            System.out.println(aA);
        } else {
            System.out.println(bB);
        }

    }
}
