
import java.util.*;

class Main {
    static int n,k;
    static String line;
    public static void main(String args[]){

        Scanner s=new Scanner(System.in);
        Integer a= s.nextInt();
        Integer b=s.nextInt();

            String ret1="";
            for (int i = 0; i <a ; i++) {
                ret1+=b.toString();
            }

            String ret2="";
            for (int i = 0; i <b ; i++) {
                ret2+=a.toString();
            }

            if(ret1.compareTo(ret2)<0){
                System.out.println(ret1);

            }else{
                System.out.println(ret2);
            }



    }
} import java.util.*; util.* java class Main {
    static int n,k;
    static String line;
    public static void main(String args[]){

        Scanner s=new Scanner(System.in);
        Integer a= s.nextInt();
        Integer b=s.nextInt();

            String ret1="";
            for (int i = 0; i <a ; i++) {
                ret1+=b.toString();
            }

            String ret2="";
            for (int i = 0; i <b ; i++) {
                ret2+=a.toString();
            }

            if(ret1.compareTo(ret2)<0){
                System.out.println(ret1);

            }else{
                System.out.println(ret2);
            }



    }
} Main static int n n k; k static String line; line public static void main(String args[]){

        Scanner s=new Scanner(System.in);
        Integer a= s.nextInt();
        Integer b=s.nextInt();

            String ret1="";
            for (int i = 0; i <a ; i++) {
                ret1+=b.toString();
            }

            String ret2="";
            for (int i = 0; i <b ; i++) {
                ret2+=a.toString();
            }

            if(ret1.compareTo(ret2)<0){
                System.out.println(ret1);

            }else{
                System.out.println(ret2);
            }



    } main {

        Scanner s=new Scanner(System.in);
        Integer a= s.nextInt();
        Integer b=s.nextInt();

            String ret1="";
            for (int i = 0; i <a ; i++) {
                ret1+=b.toString();
            }

            String ret2="";
            for (int i = 0; i <b ; i++) {
                ret2+=a.toString();
            }

            if(ret1.compareTo(ret2)<0){
                System.out.println(ret1);

            }else{
                System.out.println(ret2);
            }



    } Scanner s=new Scanner(System.in); s new Scanner(System.in) Integer a= s.nextInt(); a s.nextInt() s.nextInt s Integer b=s.nextInt(); b s.nextInt() s.nextInt s String ret1=""; ret1 "" for (int i = 0; i <a ; i++) {
                ret1+=b.toString();
            } int i = 0; int i = 0; i 0 i <a i a i++ i++ i {
                ret1+=b.toString();
            } {
                ret1+=b.toString();
            } ret1+=b.toString() ret1 b.toString() b.toString b String ret2=""; ret2 "" for (int i = 0; i <b ; i++) {
                ret2+=a.toString();
            } int i = 0; int i = 0; i 0 i <b i b i++ i++ i {
                ret2+=a.toString();
            } {
                ret2+=a.toString();
            } ret2+=a.toString() ret2 a.toString() a.toString a if(ret1.compareTo(ret2)<0){
                System.out.println(ret1);

            }else{
                System.out.println(ret2);
            } ret1.compareTo(ret2)<0 ret1.compareTo(ret2) ret1.compareTo ret1 ret2 0 {
                System.out.println(ret1);

            } System.out.println(ret1) System.out.println System.out System System.out ret1 {
                System.out.println(ret2);
            } System.out.println(ret2) System.out.println System.out System System.out ret2 String args[] args

import java.util.*;

class Main {
    static int n,k;
    static String line;
    public static void main(String args[]){

        Scanner s=new Scanner(System.in);
        Integer a= s.nextInt();
        Integer b=s.nextInt();

            String ret1="";
            for (int i = 0; i <a ; i++) {
                ret1+=b.toString();
            }

            String ret2="";
            for (int i = 0; i <b ; i++) {
                ret2+=a.toString();
            }

            if(ret1.compareTo(ret2)<0){
                System.out.println(ret1);

            }else{
                System.out.println(ret2);
            }



    }
}