import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

    private static BufferedReader br;
    private static StringTokenizer tokenizer;

    private static void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    }




    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    }

    public static String next() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    }

    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    private static BufferedReader br;
    private static StringTokenizer tokenizer;

    private static void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    }




    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    }

    public static String next() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    }

    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

} Main private static BufferedReader br; br private static StringTokenizer tokenizer; tokenizer private static void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    } solve {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    } int a = nextInt(); a nextInt() nextInt int b = nextInt(); b nextInt() nextInt StringBuilder aSb = new StringBuilder(); aSb new StringBuilder() for (int i = 0; i < b; i++) {
            aSb.append(a);
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            aSb.append(a);
        } {
            aSb.append(a);
        } aSb.append(a) aSb.append aSb a StringBuilder bSb = new StringBuilder(); bSb new StringBuilder() for (int i = 0; i < a; i++) {
            bSb.append(b);
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            bSb.append(b);
        } {
            bSb.append(b);
        } bSb.append(b) bSb.append bSb b if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        } aSb.toString().compareTo(bSb.toString()) < 0 aSb.toString().compareTo(bSb.toString()) aSb.toString().compareTo aSb.toString() aSb.toString aSb bSb.toString() bSb.toString bSb 0 {
            System.out.println(aSb.toString());
        } System.out.println(aSb.toString()) System.out.println System.out System System.out aSb.toString() aSb.toString aSb {
            System.out.println(bSb.toString());
        } System.out.println(bSb.toString()) System.out.println System.out System System.out bSb.toString() bSb.toString bSb public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    } main {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) solve() solve String[] args args public static String next() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    } next {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        } String line = br.readLine(); line br.readLine() br.readLine br if (line == null)
                throw new IOException(); line == null line null throw new IOException(); new IOException() tokenizer = new StringTokenizer(line) tokenizer new StringTokenizer(line) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public static long nextLong() throws IOException {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    } nextDouble {
        return Double.parseDouble(next());
    } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next public class Main {

    private static BufferedReader br;
    private static StringTokenizer tokenizer;

    private static void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    }




    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    }

    public static String next() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    }

    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

} public class Main {

    private static BufferedReader br;
    private static StringTokenizer tokenizer;

    private static void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    }




    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    }

    public static String next() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    }

    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

    private static BufferedReader br;
    private static StringTokenizer tokenizer;

    private static void solve() throws IOException {
        int a = nextInt();
        int b = nextInt();
        StringBuilder aSb = new StringBuilder();
        for (int i = 0; i < b; i++) {
            aSb.append(a);
        }

        StringBuilder bSb = new StringBuilder();
        for (int i = 0; i < a; i++) {
            bSb.append(b);
        }

        if (aSb.toString().compareTo(bSb.toString()) < 0) {
            System.out.println(aSb.toString());
        } else {
            System.out.println(bSb.toString());
        }
    }




    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));
        solve();
    }

    public static String next() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            String line = br.readLine();
            if (line == null)
                throw new IOException();
            tokenizer = new StringTokenizer(line);
        }
        return tokenizer.nextToken();
    }

    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }

    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

}