import java.io.*;
import java.util.*;

public class Main {
    public static String repeat(String str, int n) {
        return String.join("", Collections.nCopies(n, str));
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static String repeat(String str, int n) {
        return String.join("", Collections.nCopies(n, str));
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    }
} Main public static String repeat(String str, int n) {
        return String.join("", Collections.nCopies(n, str));
    } repeat {
        return String.join("", Collections.nCopies(n, str));
    } return String.join("", Collections.nCopies(n, str)); String.join("", Collections.nCopies(n, str)) String.join String "" Collections.nCopies(n, str) Collections.nCopies Collections n str String str str int n n public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] arr = reader.readLine().split(" "); arr reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int a = Integer.parseInt(arr[0]); a Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 int b = Integer.parseInt(arr[1]); b Integer.parseInt(arr[1]) Integer.parseInt Integer arr[1] arr 1 System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a)) System.out.println System.out System System.out a < b ? repeat(arr[0], b) : repeat(arr[1], a) a < b a b repeat(arr[0], b) repeat arr[0] arr 0 b repeat(arr[1], a) repeat arr[1] arr 1 a String[] args args public class Main {
    public static String repeat(String str, int n) {
        return String.join("", Collections.nCopies(n, str));
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    }
} public class Main {
    public static String repeat(String str, int n) {
        return String.join("", Collections.nCopies(n, str));
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    public static String repeat(String str, int n) {
        return String.join("", Collections.nCopies(n, str));
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        System.out.println(a < b ? repeat(arr[0], b) : repeat(arr[1], a));
    }
}