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 ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    }
} 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 ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    } main {
    	Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    } 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 ans=""; ans "" if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		} a<=b a b {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		} for(int i=1;i<=b;i++){
				ans=ans+a;
			} int i=1; int i=1; i 1 i<=b i b i++ i++ i {
				ans=ans+a;
			} {
				ans=ans+a;
			} ans=ans+a ans ans+a ans a {
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		} for(int i=1;i<=a;i++){
				ans=ans+b;
			} int i=1; int i=1; i 1 i<=a i a i++ i++ i {
				ans=ans+b;
			} {
				ans=ans+b;
			} ans=ans+b ans ans+b ans b System.out.println(ans) System.out.println System.out System System.out ans 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 ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    }
} public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    }
} 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 ans="";
		if (a<=b) {
			for(int i=1;i<=b;i++){
				ans=ans+a;
			}
		}
		else{
			for(int i=1;i<=a;i++){
				ans=ans+b;
			}
		}
		System.out.println(ans);
    }
}