import java.util.Scanner;


// 152_b
public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        }

    }

    /*
     * 以下メソッド集
     */

    static long gcd(long a, long b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static int gcd(int a, int b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static void out(String info) {

        System.out.println(info);
    }

    static void out(int info) {

        System.out.println(info);
    }

    static void out(double info) {

        System.out.println(info);
    }

    static void out(long info) {

        System.out.println(info);
    }

} 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 aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        }

    }

    /*
     * 以下メソッド集
     */

    static long gcd(long a, long b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static int gcd(int a, int b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static void out(String info) {

        System.out.println(info);
    }

    static void out(int info) {

        System.out.println(info);
    }

    static void out(double info) {

        System.out.println(info);
    }

    static void out(long info) {

        System.out.println(info);
    }

} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        }

    } main {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(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 aa = ""; aa "" String bb = ""; bb "" for (int i = 0; i < b; i++) {
            aa += a;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            aa += a;
        } {
            aa += a;
        } aa += a aa a for (int i = 0; i < a; i++) {
            bb += b;
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            bb += b;
        } {
            bb += b;
        } bb += b bb b if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        } aa.compareTo(bb) < 0 aa.compareTo(bb) aa.compareTo aa bb 0 {
            out(aa);
        } out(aa) out aa {
            out(bb);
        } out(bb) out bb String[] args args static long gcd(long a, long b) {

        return (b == 0) ? a : gcd(b, a % b);
    } gcd {

        return (b == 0) ? a : gcd(b, a % b);
    } return (b == 0) ? a : gcd(b, a % b); (b == 0) ? a : gcd(b, a % b) (b == 0) b 0 a gcd(b, a % b) gcd b a % b a b long a a long b b static int gcd(int a, int b) {

        return (b == 0) ? a : gcd(b, a % b);
    } gcd {

        return (b == 0) ? a : gcd(b, a % b);
    } return (b == 0) ? a : gcd(b, a % b); (b == 0) ? a : gcd(b, a % b) (b == 0) b 0 a gcd(b, a % b) gcd b a % b a b int a a int b b static void out(String info) {

        System.out.println(info);
    } out {

        System.out.println(info);
    } System.out.println(info) System.out.println System.out System System.out info String info info static void out(int info) {

        System.out.println(info);
    } out {

        System.out.println(info);
    } System.out.println(info) System.out.println System.out System System.out info int info info static void out(double info) {

        System.out.println(info);
    } out {

        System.out.println(info);
    } System.out.println(info) System.out.println System.out System System.out info double info info static void out(long info) {

        System.out.println(info);
    } out {

        System.out.println(info);
    } System.out.println(info) System.out.println System.out System System.out info long info info public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        }

    }

    /*
     * 以下メソッド集
     */

    static long gcd(long a, long b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static int gcd(int a, int b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static void out(String info) {

        System.out.println(info);
    }

    static void out(int info) {

        System.out.println(info);
    }

    static void out(double info) {

        System.out.println(info);
    }

    static void out(long info) {

        System.out.println(info);
    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        }

    }

    /*
     * 以下メソッド集
     */

    static long gcd(long a, long b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static int gcd(int a, int b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static void out(String info) {

        System.out.println(info);
    }

    static void out(int info) {

        System.out.println(info);
    }

    static void out(double info) {

        System.out.println(info);
    }

    static void out(long info) {

        System.out.println(info);
    }

} Main
import java.util.Scanner;


// 152_b
public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String aa = "";
        String bb = "";
        for (int i = 0; i < b; i++) {
            aa += a;
        }

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

        if (aa.compareTo(bb) < 0) {
            out(aa);
        } else {
            out(bb);
        }

    }

    /*
     * 以下メソッド集
     */

    static long gcd(long a, long b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static int gcd(int a, int b) {

        return (b == 0) ? a : gcd(b, a % b);
    }

    static void out(String info) {

        System.out.println(info);
    }

    static void out(int info) {

        System.out.println(info);
    }

    static void out(double info) {

        System.out.println(info);
    }

    static void out(long info) {

        System.out.println(info);
    }

}
