import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int str = scanner.nextInt(); str scanner.nextInt() scanner.nextInt scanner int cnt = scanner.nextInt(); cnt scanner.nextInt() scanner.nextInt scanner if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        } str > cnt str cnt {
            int t = str;
            str = cnt;
            cnt = t;
        } int t = str; t str str = cnt str cnt cnt = t cnt t for (int i=0; i<cnt; i++) {
            System.out.print(str);
        } int i=0; int i=0; i 0 i<cnt i cnt i++ i++ i {
            System.out.print(str);
        } {
            System.out.print(str);
        } System.out.print(str) System.out.print System.out System System.out str String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int str = scanner.nextInt();
        int cnt = scanner.nextInt();

        if (str > cnt) {
            int t = str;
            str = cnt;
            cnt = t;
        }

        for (int i=0; i<cnt; i++) {
            System.out.print(str);
        }
    }
}