import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int count = 0;
      	int target = 0;
		String ans = "";
		if (num1 < num2){
          	target = num1;
			count = num2;
		}else{
          	target = num2;
			count = num1;
		}
		
		for (int i = 0; i < count; i++){
			ans += target;
		}
		System.out.println(ans);
	}

} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int count = 0;
      	int target = 0;
		String ans = "";
		if (num1 < num2){
          	target = num1;
			count = num2;
		}else{
          	target = num2;
			count = num1;
		}
		
		for (int i = 0; i < count; i++){
			ans += target;
		}
		System.out.println(ans);
	}

} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int count = 0;
      	int target = 0;
		String ans = "";
		if (num1 < num2){
          	target = num1;
			count = num2;
		}else{
          	target = num2;
			count = num1;
		}
		
		for (int i = 0; i < count; i++){
			ans += target;
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int count = 0;
      	int target = 0;
		String ans = "";
		if (num1 < num2){
          	target = num1;
			count = num2;
		}else{
          	target = num2;
			count = num1;
		}
		
		for (int i = 0; i < count; i++){
			ans += target;
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num1 = sc.nextInt(); num1 sc.nextInt() sc.nextInt sc int num2 = sc.nextInt(); num2 sc.nextInt() sc.nextInt sc int count = 0; count 0 int target = 0; target 0 String ans = ""; ans "" if (num1 < num2){
          	target = num1;
			count = num2;
		}else{
          	target = num2;
			count = num1;
		} num1 < num2 num1 num2 {
          	target = num1;
			count = num2;
		} target = num1 target num1 count = num2 count num2 {
          	target = num2;
			count = num1;
		} target = num2 target num2 count = num1 count num1 for (int i = 0; i < count; i++){
			ans += target;
		} int i = 0; int i = 0; i 0 i < count i count i++ i++ i {
			ans += target;
		} {
			ans += target;
		} ans += target ans target System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int count = 0;
      	int target = 0;
		String ans = "";
		if (num1 < num2){
          	target = num1;
			count = num2;
		}else{
          	target = num2;
			count = num1;
		}
		
		for (int i = 0; i < count; i++){
			ans += target;
		}
		System.out.println(ans);
	}

}