import java.util.*;

public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    }
} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    } main {
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int  com = 0; com 0 String c = " "; c " " String d = " "; d " " int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        } int i=0; int i=0; i 0 i<b i b i++ i++ i {//aをb個並べる
        	c=c+String.valueOf(a);
        } {//aをb個並べる
        	c=c+String.valueOf(a);
        } c=c+String.valueOf(a) c c+String.valueOf(a) c String.valueOf(a) String.valueOf String a for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        } int k=0; int k=0; k 0 k<a k a k++ k++ k {//bをa個並べる
        	d =d+String.valueOf(b); 
        } {//bをa個並べる
        	d =d+String.valueOf(b); 
        } d =d+String.valueOf(b) d d+String.valueOf(b) d String.valueOf(b) String.valueOf String b com = c.compareTo(d) com c.compareTo(d) c.compareTo c d if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        } com<=0 com 0 {
        	System.out.println(c);
        } System.out.println(c) System.out.println System.out System System.out c {
        	System.out.println(d);
        } System.out.println(d) System.out.println System.out System System.out d String[] args args public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    }
} public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int  com = 0;
        String c = " ";
        String d = " ";
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        for(int i=0;i<b;i++){//aをb個並べる
        	c=c+String.valueOf(a);
        }
       	for(int k=0;k<a;k++){//bをa個並べる
        	d =d+String.valueOf(b); 
        }
        //System.out.println(c);
        //System.out.println(d);
        com = c.compareTo(d);
        
        if(com<=0){
        	System.out.println(c);
        }else{
        	System.out.println(d);
        }
    }
}