import java.util.*;
public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	}
} import java.util.*; util.* java public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	} main {
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = 0; a 0 int b = 0; b 0 a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc String aB = ""; aB "" String bA = ""; bA "" for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    } int i= 0; int i= 0; i 0 i<b i b i++ i++ i {
      aB = aB + String.valueOf(a);
    } {
      aB = aB + String.valueOf(a);
    } aB = aB + String.valueOf(a) aB aB + String.valueOf(a) aB String.valueOf(a) String.valueOf String a for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    } int i= 0; int i= 0; i 0 i<a i a i++ i++ i {
      bA = bA + String.valueOf(b);
    } {
      bA = bA + String.valueOf(b);
    } bA = bA + String.valueOf(b) bA bA + String.valueOf(b) bA String.valueOf(b) String.valueOf String b if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    } a<b a b {
      	System.out.println(aB);
    } System.out.println(aB) System.out.println System.out System System.out aB {
     	System.out.println(bA); 
    } System.out.println(bA) System.out.println System.out System System.out bA String[] args args public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	}
} public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	}
} Main
import java.util.*;
public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int a = 0;
  	int b = 0;
	a = sc.nextInt();
	b = sc.nextInt();
	String aB = "";
  	String bA = "";
 
  	for (int i= 0; i<b; i++){
      aB = aB + String.valueOf(a);
    }
    for (int i= 0; i<a; i++){
      bA = bA + String.valueOf(b);
    }
    
  	if(a<b){
      	System.out.println(aB);
    }else{
     	System.out.println(bA); 
    }
  
	}
}