// package app;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Arrays; Arrays java.util import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Objects; Objects java.util import java.util.Scanner; Scanner java.util import java.util.stream.Stream; Stream java.util.stream public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    }
} Main public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    } main {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc long b = sc.nextLong(); b sc.nextLong() sc.nextLong sc StringBuffer sb = new StringBuffer(); sb new StringBuffer() if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        } a < b a b {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        } for (int i = 0; i < b; i++) {
                sb.append(a);
            } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
                sb.append(a);
            } {
                sb.append(a);
            } sb.append(a) sb.append sb a {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        } for (int i = 0; i < a; i++) {
                sb.append(b);
            } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
                sb.append(b);
            } {
                sb.append(b);
            } sb.append(b) sb.append sb b System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb final String[] args args public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    }
} public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    }
} Main
// package app;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {

    public static void main(final String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        long a = sc.nextLong();
        long b = sc.nextLong();

        StringBuffer sb = new StringBuffer();
        if (a < b) {
            for (int i = 0; i < b; i++) {
                sb.append(a);
            }
        }else {
            for (int i = 0; i < a; i++) {
                sb.append(b);
            }
        }

        System.out.println(sb.toString());
    }
}