import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc int aa = Integer.parseInt(a); aa Integer.parseInt(a) Integer.parseInt Integer a int bb = Integer.parseInt(b); bb Integer.parseInt(b) Integer.parseInt Integer b int count; count String ss; ss String ans = ""; ans "" if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        } a.compareTo(b) >0 a.compareTo(b) a.compareTo a b 0 {
            count = aa;
            ss = b;
        } count = aa count aa ss = b ss b {
            count = bb;
            ss = a;
        } count = bb count bb ss = a ss a for(int i=0; i<count; i++) {
            ans += ss;
        } int i=0; int i=0; i 0 i<count i count i++ i++ i {
            ans += ss;
        } {
            ans += ss;
        } ans += ss ans ss System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        int aa = Integer.parseInt(a);
        int bb = Integer.parseInt(b);
        int count;
        String ss;
        String ans = "";
        if(a.compareTo(b) >0) {
            count = aa;
            ss = b;
        } else {
            count = bb;
            ss = a;
        }
        for(int i=0; i<count; i++) {
            ans += ss;
        }
        System.out.println(ans);
    }
}