import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc StringBuilder sb = new StringBuilder(); sb new StringBuilder() int ans = 0; ans 0 int num = 0; num 0 if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        } a > b a b {
            ans = b;
            num = a;
        } ans = b ans b num = a num a {
            ans = a;
            num = b;
        } ans = a ans a num = b num b for (int i = 0; i < num; i++) {
            sb.append(ans);
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            sb.append(ans);
        } {
            sb.append(ans);
        } sb.append(ans) sb.append sb ans sb.append("\n") sb.append sb "\n" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        StringBuilder sb = new StringBuilder();
        int ans = 0;
        int num = 0;
        if (a > b) {
            ans = b;
            num = a;
        } else {
            ans = a;
            num = b;
        }
        for (int i = 0; i < num; i++) {
            sb.append(ans);
        }
        sb.append("\n");
        System.out.println(sb.toString());
    }
}
