import java.util.*;
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.valueOf(a);
        int bb=Integer.valueOf(b);
        if(aa<bb) {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } else {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        }
        
    }
} import java.util.*; util.* java 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.valueOf(a);
        int bb=Integer.valueOf(b);
        if(aa<bb) {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } else {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        }
        
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a=sc.next();
        String b=sc.next();

        int aa=Integer.valueOf(a);
        int bb=Integer.valueOf(b);
        if(aa<bb) {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } else {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        String a=sc.next();
        String b=sc.next();

        int aa=Integer.valueOf(a);
        int bb=Integer.valueOf(b);
        if(aa<bb) {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } else {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        }
        
    } 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.valueOf(a); aa Integer.valueOf(a) Integer.valueOf Integer a int bb=Integer.valueOf(b); bb Integer.valueOf(b) Integer.valueOf Integer b if(aa<bb) {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } else {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        } aa<bb aa bb {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } for(int x=0;x<bb;x++) {
                System.out.print(aa);
            } int x=0; int x=0; x 0 x<bb x bb x++ x++ x {
                System.out.print(aa);
            } {
                System.out.print(aa);
            } System.out.print(aa) System.out.print System.out System System.out aa {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        } for(int y=0;y<aa;y++) {
                System.out.print(bb);
            } int y=0; int y=0; y 0 y<aa y aa y++ y++ y {
                System.out.print(bb);
            } {
                System.out.print(bb);
            } System.out.print(bb) System.out.print System.out System System.out bb String[] args args
import java.util.*;
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.valueOf(a);
        int bb=Integer.valueOf(b);
        if(aa<bb) {
            for(int x=0;x<bb;x++) {
                System.out.print(aa);
            }
        } else {
            for(int y=0;y<aa;y++) {
                System.out.print(bb);
            }
        }
        
    }
}