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();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    }
} 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();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    } 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 if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        } a < b a b {
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        } for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
                System.out.printf("%d", a);
            } {
                System.out.printf("%d", a);
            } System.out.printf("%d", a) System.out.printf System.out System System.out "%d" a return; for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            System.out.printf("%d", b);
        } {
            System.out.printf("%d", b);
        } System.out.printf("%d", b) System.out.printf System.out System System.out "%d" b 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();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    }
} 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();
        if(a < b){
            for (int i = 0; i < b; i++) {
                System.out.printf("%d", a);
            }
            return;
        }
        for (int i = 0; i < a; i++) {
            System.out.printf("%d", b);
        }
    }
}
