import java.util.Scanner;

public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	}
} Main public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan String result = ""; result "" if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		} num1<num2 num1 num2 {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		} for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			} int i = 0; int i = 0; i 0 i < num2 i num2 i++ i++ i {
				result += Integer.toString(num1);
			} {
				result += Integer.toString(num1);
			} result += Integer.toString(num1) result Integer.toString(num1) Integer.toString Integer num1 if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		} num1 >= num2 num1 num2 {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		} for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			} int i = 0; int i = 0; i 0 i < num1 i num1 i++ i++ i {
				result += Integer.toString(num2);
			} {
				result += Integer.toString(num2);
			} result += Integer.toString(num2) result Integer.toString(num2) Integer.toString Integer num2 System.out.println(result) System.out.println System.out System System.out result scan.close() scan.close scan String[] args args public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	}
} public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int num1 = scan.nextInt();
		int num2 = scan.nextInt();
		String result = "";
		if(num1<num2) {
			for(int i = 0;i < num2;i++) {
				result += Integer.toString(num1);
			}
		}else if(num1 >= num2) {
			for(int i = 0;i < num1;i++) {
				result += Integer.toString(num2);
			}
		}
		System.out.println(result);
		scan.close();
	}
}