import java.util.*;

public class Main{
    public static void main(String[] args){
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    }
} Main public static void main(String[] args){
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    } main {
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    } int a a b b aLen aLen bLen bLen i; i String A A B B sumA="" sumA "" sumB=""; sumB "" Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan aLen = a aLen a bLen = b bLen b A = Integer.toString(a) A Integer.toString(a) Integer.toString Integer a B = Integer.toString(b) B Integer.toString(b) Integer.toString Integer b for(i=1;i<=bLen;i++){
                sumA += A;
            } i=1; i=1 i 1 i<=bLen i bLen i++ i++ i {
                sumA += A;
            } {
                sumA += A;
            } sumA += A sumA A for(i=1;i<=aLen;i++){
                sumB += B;
            } i=1; i=1 i 1 i<=aLen i aLen i++ i++ i {
                sumB += B;
            } {
                sumB += B;
            } sumB += B sumB B if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            } sumA.length() > sumB.length() sumA.length() sumA.length sumA sumB.length() sumB.length sumB {
                System.out.println(sumA);
            } System.out.println(sumA) System.out.println System.out System System.out sumA if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            } sumA.length() < sumB.length() sumA.length() sumA.length sumA sumB.length() sumB.length sumB {
                System.out.println(sumB);
            } System.out.println(sumB) System.out.println System.out System System.out sumB if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            } sumA.length() == sumB.length() sumA.length() sumA.length sumA sumB.length() sumB.length sumB {
                System.out.println(sumA);
            } System.out.println(sumA) System.out.println System.out System System.out sumA String[] args args public class Main{
    public static void main(String[] args){
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    }
} public class Main{
    public static void main(String[] args){
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
            int a, b, aLen, bLen,i;
            String A,B,sumA="",sumB="";
            Scanner scan = new Scanner(System.in);

            a = scan.nextInt();
            b = scan.nextInt();
            aLen = a;
            bLen = b;
            A = Integer.toString(a);
            B = Integer.toString(b);

            for(i=1;i<=bLen;i++){
                sumA += A;
            }

            for(i=1;i<=aLen;i++){
                sumB += B;
            }

            if(sumA.length() > sumB.length()){
                System.out.println(sumA);
            }
            if(sumA.length() < sumB.length()){
                System.out.println(sumB);
            }
            if(sumA.length() == sumB.length()){
                System.out.println(sumA);
            }


    }
}