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