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