import java.util.*;

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

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

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

    } main {
        Scanner sc = new Scanner(System.in);
        int a,b;
        a=sc.nextInt();
        b=sc.nextInt();
        int max,min;
        max=a;
        min=b;
        if(max<min){
            max=b;
            min=a;
        }
        int [] num1 = new int[max];
        for(int i=0;i<num1.length;i++){
            num1[i]=min;
            System.out.print(num1[i]);
        }
		

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

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

    }
} Main
import java.util.*;

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

    }
}