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();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    }

} 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();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    } 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 sc.close() sc.close sc StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            sb.append(String.valueOf(a));
        } {
            sb.append(String.valueOf(a));
        } sb.append(String.valueOf(a)) sb.append sb String.valueOf(a) String.valueOf String a String A = sb.toString(); A sb.toString() sb.toString sb sb.setLength(0) sb.setLength sb 0 for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            sb.append(String.valueOf(b));
        } {
            sb.append(String.valueOf(b));
        } sb.append(String.valueOf(b)) sb.append sb String.valueOf(b) String.valueOf String b String B = sb.toString(); B sb.toString() sb.toString sb if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        } a >= b a b {
            System.out.println(B);
        } System.out.println(B) System.out.println System.out System System.out B {
            System.out.println(A);
        } System.out.println(A) System.out.println System.out System System.out A 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();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    }

} 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();
        sc.close();

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < b; i++) {
            sb.append(String.valueOf(a));
        }

        String A = sb.toString();
        sb.setLength(0);

        for (int i = 0; i < a; i++) {
            sb.append(String.valueOf(b));
        }
        String B = sb.toString();

        if (a >= b) {
            System.out.println(B);
        } else {
            System.out.println(A);
        }

    }

}