import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    }
} 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 str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    } 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 str = ""; str "" if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        } a < b a b {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } for (int i = 0; i < b; i++) {
                str += a;
            } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
                str += a;
            } {
                str += a;
            } str += a str a System.out.println(str) System.out.println System.out System System.out str {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        } for (int i = 0; i < a; i++) {
                str += b;
            } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
                str += b;
            } {
                str += b;
            } str += b str b System.out.println(str) System.out.println System.out System System.out str sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String str = "";
        if (a < b) {
            for (int i = 0; i < b; i++) {
                str += a;
            }
            System.out.println(str);
        } else {
            for (int i = 0; i < a; i++) {
                str += b;
            }
            System.out.println(str);
        }
        sc.close();
    }
}