
// 問題URL
// https://atcoder.jp/contests/abc152/tasks/abc152_b

import java.util.*;
import java.lang.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.util.stream.*; stream.* java.util public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    }
} Main public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    } main {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer x = Integer.parseInt(scanner.next()); x Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer y = Integer.parseInt(scanner.next()); y Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int kekka; kekka String moji = new String(); moji new String() if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        } x > y x y {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            } int i=0; int i=0; i 0 i< x i x i++ i++ i {
                moji += String.valueOf(y);
            } {
                moji += String.valueOf(y);
            } moji += String.valueOf(y) moji String.valueOf(y) String.valueOf String y {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        } for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            } int i=0; int i=0; i 0 i< y i y i++ i++ i {
                moji += String.valueOf(x);
            } {
                moji += String.valueOf(x);
            } moji += String.valueOf(x) moji String.valueOf(x) String.valueOf String x System.out.println(moji) System.out.println System.out System System.out moji String[] args args public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    }
} public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    }
} Main

// 問題URL
// https://atcoder.jp/contests/abc152/tasks/abc152_b

import java.util.*;
import java.lang.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());


        int kekka;
        String moji = new String();

        if(x > y) {
            for(int i=0; i< x; i++) {
                moji += String.valueOf(y);
            }
        } else {
            for(int i=0; i< y; i++) {
                moji += String.valueOf(x);
            }

        }

        System.out.println(moji);
    }
}