
import java.util.*;

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

        StringBuilder ans = new StringBuilder();
        int i;

        if (a < b) {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        }
        else {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        }

        System.out.println(ans.toString());
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        StringBuilder ans = new StringBuilder();
        int i;

        if (a < b) {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        }
        else {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        }

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

        StringBuilder ans = new StringBuilder();
        int i;

        if (a < b) {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        }
        else {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        }

        System.out.println(ans.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        StringBuilder ans = new StringBuilder();
        int i;

        if (a < b) {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        }
        else {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        }

        System.out.println(ans.toString());
    } 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 StringBuilder ans = new StringBuilder(); ans new StringBuilder() int i; i if (a < b) {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        }
        else {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        } a < b a b {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        } for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            } i = 0; i = 0 i 0 i < b i b i++ i++ i {
                ans.append(String.valueOf(a));
            } {
                ans.append(String.valueOf(a));
            } ans.append(String.valueOf(a)) ans.append ans String.valueOf(a) String.valueOf String a {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        } for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            } i = 0; i = 0 i 0 i < a i a i++ i++ i {
                ans.append(String.valueOf(b));
            } {
                ans.append(String.valueOf(b));
            } ans.append(String.valueOf(b)) ans.append ans String.valueOf(b) String.valueOf String b System.out.println(ans.toString()) System.out.println System.out System System.out ans.toString() ans.toString ans String[] args args

import java.util.*;

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

        StringBuilder ans = new StringBuilder();
        int i;

        if (a < b) {
            for (i = 0; i < b; i++) {
                ans.append(String.valueOf(a));
            }
        }
        else {
            for (i = 0; i < a; i++) {
                ans.append(String.valueOf(b));
            }
        }

        System.out.println(ans.toString());
    }
}