// ABC152のB問題
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        if(a >= b) {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        }
        else {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        }

    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        if(a >= b) {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        }
        else {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        }

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        if(a >= b) {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        }
        else {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        if(a >= b) {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        }
        else {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(a >= b) {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        }
        else {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        } a >= b a b {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        } for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            } int i = 0; int i = 0; i 0 i < a i a ++i ++i i {
                System.out.printf("%d", b);
            } {
                System.out.printf("%d", b);
            } System.out.printf("%d", b) System.out.printf System.out System System.out "%d" b {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        } for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            } int i = 0; int i = 0; i 0 i < b i b ++i ++i i {
                System.out.printf("%d", a);
            } {
                System.out.printf("%d", a);
            } System.out.printf("%d", a) System.out.printf System.out System System.out "%d" a String[] args args
// ABC152のB問題
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());

        if(a >= b) {
            for(int i = 0; i < a; ++i) {
                System.out.printf("%d", b);
            }
        }
        else {
            for(int i = 0; i < b; ++i) {
                System.out.printf("%d", a);
            }
        }

    }
}
