import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	} main {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] str = sc.nextLine().split(" "); str sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " String a = str[0]; a str[0] str 0 String b = str[1]; b str[1] str 1 String str1 = ""; str1 "" for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        } int i = 0; int i = 0; i 0 i < Integer.valueOf(b) i Integer.valueOf(b) Integer.valueOf Integer b i++ i++ i {
        	str1+=a;
        } {
        	str1+=a;
        } str1+=a str1 a String str2 = ""; str2 "" for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        } int i = 0; int i = 0; i 0 i < Integer.valueOf(a) i Integer.valueOf(a) Integer.valueOf Integer a i++ i++ i {
        	str2+=b;
        } {
        	str2+=b;
        } str2+=b str2 b int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b)); result Integer.compare(Integer.valueOf(a), Integer.valueOf(b)) Integer.compare Integer Integer.valueOf(a) Integer.valueOf Integer a Integer.valueOf(b) Integer.valueOf Integer b if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2); result == 0 result 0 System.out.println(str1) System.out.println System.out System System.out str1 if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2); result == -1 result -1 1 System.out.println(str1) System.out.println System.out System System.out str1 if(result == 1) System.out.println(str2); result == 1 result 1 System.out.println(str2) System.out.println System.out System System.out str2 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] str = sc.nextLine().split(" ");
		String a = str[0];
		String b = str[1];
		
        String str1 = "";
        for(int i = 0; i < Integer.valueOf(b); i++) {
        	str1+=a;
        }
        
        String str2 = "";
        for(int i = 0; i < Integer.valueOf(a); i++) {
        	str2+=b;
        }
        int result = Integer.compare(Integer.valueOf(a), Integer.valueOf(b));
        if(result == 0) System.out.println(str1);
        else if(result == -1) System.out.println(str1);
        else if(result == 1) System.out.println(str2);
	}
}