
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();

        
        if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(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();

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

        int a = scanner.nextInt();
        int b = scanner.nextInt();

        
        if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(builder.toString());
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();

        
        if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(builder.toString());
        }
    } 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 if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(builder.toString());
        } a <= b a b {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } StringBuilder builder = new StringBuilder(); builder new StringBuilder() for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            } int i = 0 ; int i = 0 ; i 0 i < b i b i++ i++ i {
                builder.append(a);
            } {
                builder.append(a);
            } builder.append(a) builder.append builder a System.out.println(builder.toString()) System.out.println System.out System System.out builder.toString() builder.toString builder {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(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 System.out.println(builder.toString()) System.out.println System.out System System.out builder.toString() builder.toString builder String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();

        
        if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(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();

        
        if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(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();

        
        if (a <= b) {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < b ; i++) {
                builder.append(a);
            }
            System.out.println(builder.toString());
        } else {
            StringBuilder builder = new StringBuilder();
            for (int i = 0 ; i < a ; i++) {
                builder.append(b);
            }
            System.out.println(builder.toString());
        }
    }
}
