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