import java.util.Scanner;

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

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