import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        } int i = 0; int i = 0; i 0 i < Math.max(a, b) i Math.max(a, b) Math.max Math a b i++ i++ i {
            System.out.print(Math.min(a, b));
        } {
            System.out.print(Math.min(a, b));
        } System.out.print(Math.min(a, b)) System.out.print System.out System System.out Math.min(a, b) Math.min Math a b scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        for(int i = 0; i < Math.max(a, b); i++){
            System.out.print(Math.min(a, b));
        }
        scan.close();
    }
}