import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	}
	
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	}
	
} Main public static void main(String[] args){
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	} main {
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	} 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 String str1=""; str1 "" if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		} a<b a b {
			for(int i = 0;i<b;i++)
			str1+=""+a;
		} for(int i = 0;i<b;i++)
			str1+=""+a; int i = 0; int i = 0; i 0 i<b i b i++ i++ i str1+=""+a; str1+=""+a str1 ""+a "" a {
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		} for(int i = 0;i<a;i++)
			str1 += ""+b; int i = 0; int i = 0; i 0 i<a i a i++ i++ i str1 += ""+b; str1 += ""+b str1 ""+b "" b System.out.println(str1) System.out.println System.out System System.out str1 String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	}
	
} public class Main{
	public static void main(String[] args){
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	}
	
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String str1="";
		if(a<b){
			for(int i = 0;i<b;i++)
			str1+=""+a;
		}else{
			for(int i = 0;i<a;i++)
			str1 += ""+b;
		}
		System.out.println(str1);
		
	}
	
}