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 astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	}
} 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 astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
      
      	String astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
      
      	String astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	} 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 astr = ""; astr "" String bstr = ""; bstr "" for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        } int i=0 ; int i=0 ; i 0 i<b i b i++ i++ i {
          astr = astr + Integer.toString(a);
        } {
          astr = astr + Integer.toString(a);
        } astr = astr + Integer.toString(a) astr astr + Integer.toString(a) astr Integer.toString(a) Integer.toString Integer a for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        } int i=0 ; int i=0 ; i 0 i<a i a i++ i++ i {
          bstr = bstr + Integer.toString(b);
        } {
          bstr = bstr + Integer.toString(b);
        } bstr = bstr + Integer.toString(b) bstr bstr + Integer.toString(b) bstr Integer.toString(b) Integer.toString Integer b String[] temp = {astr,bstr}; temp {astr,bstr} astr bstr Arrays.sort(temp) Arrays.sort Arrays temp if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        } temp[0] != "" temp[0] temp 0 "" {
        	System.out.print(temp[0]);
        } System.out.print(temp[0]) System.out.print System.out System System.out temp[0] temp 0 {
           System.out.print(temp[1]);
        } System.out.print(temp[1]) System.out.print System.out System System.out temp[1] temp 1 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 astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
      
      	String astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	}
} 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 astr = "";
      	String bstr = "";
      
      	for (int i=0 ; i<b ; i++) {
          astr = astr + Integer.toString(a);
        }
      
        for (int i=0 ; i<a ; i++) {
          bstr = bstr + Integer.toString(b);
        }
      
      	String[] temp = {astr,bstr};
        Arrays.sort(temp);
 
      	if (temp[0] != "") {
        	System.out.print(temp[0]);
        } else {
           System.out.print(temp[1]);
        }
   
	}
}
