import java.util.*;
/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	}
}; 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();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	} 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 if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		} a <= b a b {
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		} String x = ""; x "" for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			} int i = 0 ; int i = 0 ; i 0 i<b i b i++ i++ i {
				x = x + Integer.toString(a);
			} {
				x = x + Integer.toString(a);
			} x = x + Integer.toString(a) x x + Integer.toString(a) x Integer.toString(a) Integer.toString Integer a System.out.println(x) System.out.println System.out System System.out x {
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		} String x = ""; x "" for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			} int i = 0 ; int i = 0 ; i 0 i<a i a i++ i++ i {
				x = x + Integer.toString(b);
			} {
				x = x + Integer.toString(b);
			} x = x + Integer.toString(b) x x + Integer.toString(b) x Integer.toString(b) Integer.toString Integer b System.out.println(x) System.out.println System.out System System.out x 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();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	}
} Main
import java.util.*;
/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(a <= b){
			String x = "";
			for(int i = 0 ; i<b ; i++){
				x = x + Integer.toString(a);
			}
			System.out.println(x);
		}else{
			String x = "";
			for(int i = 0 ; i<a ; i++){
				x = x + Integer.toString(b);
			}
			System.out.println(x);
		}
	}
};
