import java.util.*;

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

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int alphabet = 0;
		int refrain = 0;
		if(a < b){
			alphabet = a;
			refrain = b;
		}else{
			alphabet = b;
			refrain = a;
		}
		for(int i = 0; i < refrain; i++){
			System.out.print(alphabet);
		}
		System.out.println("");
	}
}