/*package whatever //do not write package name here */

import java.io.*;
import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 

class Main {
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        String next(){
            while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        int nextInt(){
            return Integer.parseInt(next());
        }
    }
	public static void main (String[] args) {
		FastReader ob = new FastReader();
		int n = ob.nextInt();
		int m = ob.nextInt();
		String a="",b="";
		for (int i=0;i<m ;i++ ) {
		    a+=n;
		}
		for (int i=0;i<n ;i++ ) {
		    b+=m;
		}
		if(n>m){
		    System.out.println(b);
		    return;
		}
		System.out.println(a);
	
	}
} import java.io.*; io.* java import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util import java.util.StringTokenizer; StringTokenizer java.util class Main {
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        String next(){
            while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        int nextInt(){
            return Integer.parseInt(next());
        }
    }
	public static void main (String[] args) {
		FastReader ob = new FastReader();
		int n = ob.nextInt();
		int m = ob.nextInt();
		String a="",b="";
		for (int i=0;i<m ;i++ ) {
		    a+=n;
		}
		for (int i=0;i<n ;i++ ) {
		    b+=m;
		}
		if(n>m){
		    System.out.println(b);
		    return;
		}
		System.out.println(a);
	
	}
} Main public static void main (String[] args) {
		FastReader ob = new FastReader();
		int n = ob.nextInt();
		int m = ob.nextInt();
		String a="",b="";
		for (int i=0;i<m ;i++ ) {
		    a+=n;
		}
		for (int i=0;i<n ;i++ ) {
		    b+=m;
		}
		if(n>m){
		    System.out.println(b);
		    return;
		}
		System.out.println(a);
	
	} main {
		FastReader ob = new FastReader();
		int n = ob.nextInt();
		int m = ob.nextInt();
		String a="",b="";
		for (int i=0;i<m ;i++ ) {
		    a+=n;
		}
		for (int i=0;i<n ;i++ ) {
		    b+=m;
		}
		if(n>m){
		    System.out.println(b);
		    return;
		}
		System.out.println(a);
	
	} FastReader ob = new FastReader(); ob new FastReader() int n = ob.nextInt(); n ob.nextInt() ob.nextInt ob int m = ob.nextInt(); m ob.nextInt() ob.nextInt ob String a="" a "" b=""; b "" for (int i=0;i<m ;i++ ) {
		    a+=n;
		} int i=0; int i=0; i 0 i<m i m i++ i++ i {
		    a+=n;
		} {
		    a+=n;
		} a+=n a n for (int i=0;i<n ;i++ ) {
		    b+=m;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
		    b+=m;
		} {
		    b+=m;
		} b+=m b m if(n>m){
		    System.out.println(b);
		    return;
		} n>m n m {
		    System.out.println(b);
		    return;
		} System.out.println(b) System.out.println System.out System System.out b return; System.out.println(a) System.out.println System.out System System.out a String[] args args static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        String next(){
            while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        int nextInt(){
            return Integer.parseInt(next());
        }
    } FastReader BufferedReader br; br StringTokenizer st; st public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        } FastReader {
            br = new BufferedReader(new InputStreamReader(System.in));
        } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) String next(){
            while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } next {
            while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        } while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            } st==null || !st.hasMoreTokens() st==null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st {
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            } try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                } catch(IOException e){
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    st = new StringTokenizer(br.readLine());
                } st = new StringTokenizer(br.readLine()) st new StringTokenizer(br.readLine()) return st.nextToken(); st.nextToken() st.nextToken st int nextInt(){
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next
/*package whatever //do not write package name here */

import java.io.*;
import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 

class Main {
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        String next(){
            while(st==null || !st.hasMoreTokens()){
                try{
                    st = new StringTokenizer(br.readLine());
                }
                catch(IOException e){
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        int nextInt(){
            return Integer.parseInt(next());
        }
    }
	public static void main (String[] args) {
		FastReader ob = new FastReader();
		int n = ob.nextInt();
		int m = ob.nextInt();
		String a="",b="";
		for (int i=0;i<m ;i++ ) {
		    a+=n;
		}
		for (int i=0;i<n ;i++ ) {
		    b+=m;
		}
		if(n>m){
		    System.out.println(b);
		    return;
		}
		System.out.println(a);
	
	}
}