import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Random;
import java.util.StringTokenizer;
public class Main{
       public static void main(String[] args){
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       }
       static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
 
        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
        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());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Random; Random java.util import java.util.StringTokenizer; StringTokenizer java.util public class Main{
       public static void main(String[] args){
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       }
       static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
 
        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
        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());
        }
    }
} Main public static void main(String[] args){
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       } main {
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       } FastScanner scanner = new FastScanner(System.in); scanner new FastScanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b=scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a); a>=b a b for(int i=0;i<a;++i)System.out.print(b); int i=0; int i=0; i 0 i<a i a ++i ++i i System.out.print(b); System.out.print(b) System.out.print System.out System System.out b for(int i=0;i<b;++i)System.out.print(a); int i=0; int i=0; i 0 i<b i b ++i ++i i System.out.print(a); System.out.print(a) System.out.print System.out System System.out a String[] args args static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
 
        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
        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());
        }
    } FastScanner BufferedReader br; br StringTokenizer st; st FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        } FastScanner {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        } try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            } catch (Exception e) {
                e.printStackTrace();
            } Exception e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                br = new BufferedReader(new InputStreamReader(stream));
            } br = new BufferedReader(new InputStreamReader(stream)) br new BufferedReader(new InputStreamReader(stream)) InputStream stream stream 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 public class Main{
       public static void main(String[] args){
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       }
       static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
 
        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
        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 class Main{
       public static void main(String[] args){
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       }
       static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
 
        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
        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());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Random;
import java.util.StringTokenizer;
public class Main{
       public static void main(String[] args){
            FastScanner scanner = new FastScanner(System.in);
            int a = scanner.nextInt();
            int b=scanner.nextInt();
            if(a>=b)for(int i=0;i<a;++i)System.out.print(b);
         	else for(int i=0;i<b;++i)System.out.print(a);
       }
       static class FastScanner {
        BufferedReader br;
        StringTokenizer st;
 
        FastScanner(InputStream stream) {
            try {
                br = new BufferedReader(new InputStreamReader(stream));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
 
        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());
        }
    }
}