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