import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) throws IOException {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    }

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

    public static void main(String[] args) throws IOException {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    }

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

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    } main {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    } InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader reader = new BufferedReader(is); reader new BufferedReader(is) List<String> mylist = new ArrayList<>(); mylist new ArrayList<>() String strinput = reader.readLine(); strinput reader.readLine() reader.readLine reader while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        } strinput != null strinput null {

            mylist.add(strinput);
            strinput = reader.readLine();

        } mylist.add(strinput) mylist.add mylist strinput strinput = reader.readLine() strinput reader.readLine() reader.readLine reader String arr01[] = mylist.get(0).split(" "); arr01 mylist.get(0).split(" ") mylist.get(0).split mylist.get(0) mylist.get mylist 0 " " int a = Integer.valueOf(arr01[0]); a Integer.valueOf(arr01[0]) Integer.valueOf Integer arr01[0] arr01 0 int b = Integer.valueOf(arr01[1]); b Integer.valueOf(arr01[1]) Integer.valueOf Integer arr01[1] arr01 1 StringBuffer sb = new StringBuffer(); sb new StringBuffer() if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        } a == b a b {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            } int i = 1; int i = 1; i 1 i <= a i a i++ i++ i {
                sb.append(String.valueOf(a));
            } {
                sb.append(String.valueOf(a));
            } sb.append(String.valueOf(a)) sb.append sb String.valueOf(a) String.valueOf String a if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        } a > b a b {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            } int i = 1; int i = 1; i 1 i <= a i a i++ i++ i {
                sb.append(String.valueOf(b));
            } {
                sb.append(String.valueOf(b));
            } sb.append(String.valueOf(b)) sb.append sb String.valueOf(b) String.valueOf String b if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        } a < b a b {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        } for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            } int i = 1; int i = 1; i 1 i <= b i b i++ i++ i {
                sb.append(String.valueOf(a));
            } {
                sb.append(String.valueOf(a));
            } sb.append(String.valueOf(a)) sb.append sb String.valueOf(a) String.valueOf String a System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {

    public static void main(String[] args) throws IOException {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    }

} public class Main {

    public static void main(String[] args) throws IOException {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) throws IOException {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        List<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {

            mylist.add(strinput);
            strinput = reader.readLine();

        }

        String arr01[] = mylist.get(0).split(" ");

        int a = Integer.valueOf(arr01[0]);
        int b = Integer.valueOf(arr01[1]);

        StringBuffer sb = new StringBuffer();
        if (a == b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(a));
            }
        } else if (a > b) {
            for (int i = 1; i <= a; i++) {
                sb.append(String.valueOf(b));
            }

        } else if (a < b) {
            for (int i = 1; i <= b; i++) {
                sb.append(String.valueOf(a));
            }

        }

        System.out.println(sb.toString());

    }

}