import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    } main {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int a = input.nextInt(); a input.nextInt() input.nextInt input int b = input.nextInt(); b input.nextInt() input.nextInt input if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        } (a >= 1 && a <=9) && (b >= 1 && b <=9) (a >= 1 && a <=9) a >= 1 a 1 a <=9 a 9 (b >= 1 && b <=9) b >= 1 b 1 b <=9 b 9 {
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        } for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            } int i = 0; int i = 0; i 0 i < Math.max(a,b) i Math.max(a,b) Math.max Math a b i++ i++ i {
                System.out.print(Math.min(a, b));
            } {
                System.out.print(Math.min(a, b));
            } System.out.print(Math.min(a, b)) System.out.print System.out System System.out Math.min(a, b) Math.min Math a b String[] args args public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    }
} public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        if((a >= 1 && a <=9) && (b >= 1 && b <=9)){
            for (int i = 0; i < Math.max(a,b); i++){
                System.out.print(Math.min(a, b));
            }
        }
    }
}