import java.util.*; 
import java.io.*; 

public class Main {
	public static void main(String[] args) throws IOException {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   }
} Main public static void main(String[] args) throws IOException {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   } main {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m = sc.nextInt(); m sc.nextInt() sc.nextInt sc if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m); n<m n m {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     } for(int i = 0; i<m; i++) System.out.print(n); int i = 0; int i = 0; i 0 i<m i m i++ i++ i System.out.print(n); System.out.print(n) System.out.print System.out System System.out n for(int i = 0;i<n; i++) System.out.print(m); int i = 0; int i = 0; i 0 i<n i n i++ i++ i System.out.print(m); System.out.print(m) System.out.print System.out System System.out m String[] args args public class Main {
	public static void main(String[] args) throws IOException {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   }
} public class Main {
	public static void main(String[] args) throws IOException {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   }
} Main
import java.util.*; 
import java.io.*; 

public class Main {
	public static void main(String[] args) throws IOException {
     Scanner sc = new Scanner(System.in);
     int n = sc.nextInt(); 
     int m = sc.nextInt(); 
     if(n<m) {
    	 for(int i = 0; i<m; i++) System.out.print(n);
     }
     else for(int i = 0;i<n; i++) System.out.print(m);
   }
}