import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    }

    private static String createString(int a, int b) {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    }

    private static String createString(int a, int b) {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner String answer = ""; answer "" if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        } a > b a b {
            answer = createString(a, b);
        } answer = createString(a, b) answer createString(a, b) createString a b {
            answer = createString(b, a);
        } answer = createString(b, a) answer createString(b, a) createString b a System.out.println(answer) System.out.println System.out System System.out answer String[] args args private static String createString(int a, int b) {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    } createString {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    } StringBuilder builder = new StringBuilder(); builder new StringBuilder() for(int i = 0; i < a; i++){
            builder.append(b);
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            builder.append(b);
        } {
            builder.append(b);
        } builder.append(b) builder.append builder b return builder.toString(); builder.toString() builder.toString builder int a a int b b public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    }

    private static String createString(int a, int b) {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    }

    private static String createString(int a, int b) {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        String answer = "";
        if(a > b){
            answer = createString(a, b);
        } else {
            answer = createString(b, a);
        }
        System.out.println(answer);
    }

    private static String createString(int a, int b) {
        StringBuilder builder = new StringBuilder();
        for(int i = 0; i < a; i++){
            builder.append(b);
        }
        return builder.toString();
    }
}