import java.util.Scanner;

/**
 * TITLE : Comparing Strings
 * URL : https://atcoder.jp/contests/abc152/tasks/abc152_b
 */
public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int answer; answer if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        } a < b a b {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } answer = a answer a for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            } int i = 1; int i = 1; i 1 i < b i b i++ i++ i {
                answer = answer * 10 + a;
            } {
                answer = answer * 10 + a;
            } answer = answer * 10 + a answer answer * 10 + a answer * 10 answer 10 a {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        } answer = b answer b for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            } int i = 1; int i = 1; i 1 i < a i a i++ i++ i {
                answer = answer * 10 + b;
            } {
                answer = answer * 10 + b;
            } answer = answer * 10 + b answer answer * 10 + b answer * 10 answer 10 b System.out.println(answer) System.out.println System.out System System.out answer sc.close() sc.close sc String args[] args public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    }
} public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    }
} Main
import java.util.Scanner;

/**
 * TITLE : Comparing Strings
 * URL : https://atcoder.jp/contests/abc152/tasks/abc152_b
 */
public class Main {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int answer;

        if (a < b) {
            answer = a;
            for (int i = 1; i < b; i++) {
                answer = answer * 10 + a;
            }
        } else {
            answer = b;
            for (int i = 1; i < a; i++) {
                answer = answer * 10 + b;
            }
        }

        System.out.println(answer);
        sc.close();
    }
}