import java.io.*;

public class Main {
    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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    }
} import java.io.*; io.* java public class Main {
    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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    }
} Main 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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    } 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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    } 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 int ans = 0; ans 0 if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        } a < b a b {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } for (int i = 0; i < b; i++)
                ans = 10 * ans + a; int i = 0; int i = 0; i 0 i < b i b i++ i++ i ans = 10 * ans + a; ans = 10 * ans + a ans 10 * ans + a 10 * ans 10 ans a {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        } for (int i = 0; i < a; i++)
                ans = 10 * ans + b; int i = 0; int i = 0; i 0 i < a i a i++ i++ i ans = 10 * ans + b; ans = 10 * ans + b ans 10 * ans + b 10 * ans 10 ans b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    }
} public class Main {
    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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    }
} Main
import java.io.*;

public class Main {
    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]);
        int ans = 0;
        if (a < b) {
            for (int i = 0; i < b; i++)
                ans = 10 * ans + a;
        } else {
            for (int i = 0; i < a; i++)
                ans = 10 * ans + b;
        }
        System.out.println(ans);
    }
}