import java.util.*;
/**
 * @author yamato
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	}

} import java.util.*; util.* java public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	} main {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int min = Math.min(a, b); min Math.min(a, b) Math.min Math a b int max = Math.max(a, b); max Math.max(a, b) Math.max Math a b String ans = ""; ans "" int i; i for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		} i=0; i=0 i 0 i<max i max i++ i++ i {
			ans += Integer.toString(min);
		} {
			ans += Integer.toString(min);
		} ans += Integer.toString(min) ans Integer.toString(min) Integer.toString Integer min System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	}

} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	}

} Main
import java.util.*;
/**
 * @author yamato
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int min = Math.min(a, b);
		int max = Math.max(a, b);
		String ans = "";
		int i;
		for(i=0;i<max;i++) {
			ans += Integer.toString(min);
		}
		System.out.print(ans);
		
	}

}
