import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<String, Integer> map = new HashMap<String, Integer>(n);
//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")

public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 }
} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static void p(String ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans String ans ans static void p(int ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans int ans ans static void p(long ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans long ans ans static void p(double ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans double ans ans public static void main(String[] args) {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 } main {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 } int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc List<String> cc=new ArrayList<String>(2); cc new ArrayList<String>(2) String tmp1=""; tmp1 "" String tmp2=""; tmp2 "" for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		} int i=0; int i=0; i 0 i<a i a i++ i++ i {
			tmp1=tmp1+b;
		} {
			tmp1=tmp1+b;
		} tmp1=tmp1+b tmp1 tmp1+b tmp1 b for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		} int i=0; int i=0; i 0 i<b i b i++ i++ i {
			tmp2=tmp2+a;
		} {
			tmp2=tmp2+a;
		} tmp2=tmp2+a tmp2 tmp2+a tmp2 a cc.add(tmp1) cc.add cc tmp1 cc.add(tmp2) cc.add cc tmp2 Collections.sort(cc) Collections.sort Collections cc p(cc.get(0)) p cc.get(0) cc.get cc 0 String[] args args public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 }
} public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)
//Map<String, Integer> map = new HashMap<String, Integer>(n);
//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")

public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	//static String eikomoji[]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
	
	
	public static void main(String[] args) {
	int a=sc.nextInt();
	int b=sc.nextInt();
	List<String> cc=new ArrayList<String>(2);
	String tmp1="";
	String tmp2="";
		for(int i=0;i<a;i++) {
			tmp1=tmp1+b;
		}
	
		for(int i=0;i<b;i++) {
			tmp2=tmp2+a;
		}
      cc.add(tmp1);
      cc.add(tmp2);
		Collections.sort(cc);
		p(cc.get(0));
	
 }
}
