
import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int ai = (int)a;
        

        StringBuilder sb = new StringBuilder();

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

        System.out.println(sb);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int ai = (int)a;
        

        StringBuilder sb = new StringBuilder();

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

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

        StringBuilder sb = new StringBuilder();

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

        System.out.println(sb);
    } main {
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int ai = (int)a;
        

        StringBuilder sb = new StringBuilder();

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

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

    public static void main(String[] args) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int ai = (int)a;
        

        StringBuilder sb = new StringBuilder();

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

        System.out.println(sb);
    }
} public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int ai = (int)a;
        

        StringBuilder sb = new StringBuilder();

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

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

import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int ai = (int)a;
        

        StringBuilder sb = new StringBuilder();

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

        System.out.println(sb);
    }
}