import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String sa = "";
        String sb = "";
        for(int i = 0;i < b;i++){
            sa += String.valueOf(a);
        }
        for(int i = 0;i < a;i++){
            sb += String.valueOf(b);
        }
        System.out.println(a>=b?sb:sa);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String sa = "";
        String sb = "";
        for(int i = 0;i < b;i++){
            sa += String.valueOf(a);
        }
        for(int i = 0;i < a;i++){
            sb += String.valueOf(b);
        }
        System.out.println(a>=b?sb:sa);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String sa = "";
        String sb = "";
        for(int i = 0;i < b;i++){
            sa += String.valueOf(a);
        }
        for(int i = 0;i < a;i++){
            sb += String.valueOf(b);
        }
        System.out.println(a>=b?sb:sa);
    } main {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String sa = "";
        String sb = "";
        for(int i = 0;i < b;i++){
            sa += String.valueOf(a);
        }
        for(int i = 0;i < a;i++){
            sb += String.valueOf(b);
        }
        System.out.println(a>=b?sb:sa);
    } 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 String sa = ""; sa "" String sb = ""; sb "" for(int i = 0;i < b;i++){
            sa += String.valueOf(a);
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            sa += String.valueOf(a);
        } {
            sa += String.valueOf(a);
        } sa += String.valueOf(a) sa String.valueOf(a) String.valueOf String a for(int i = 0;i < a;i++){
            sb += String.valueOf(b);
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            sb += String.valueOf(b);
        } {
            sb += String.valueOf(b);
        } sb += String.valueOf(b) sb String.valueOf(b) String.valueOf String b System.out.println(a>=b?sb:sa) System.out.println System.out System System.out a>=b?sb:sa a>=b a b sb sa String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        String sa = "";
        String sb = "";
        for(int i = 0;i < b;i++){
            sa += String.valueOf(a);
        }
        for(int i = 0;i < a;i++){
            sb += String.valueOf(b);
        }
        System.out.println(a>=b?sb:sa);
    }
}