import java.util.*;

public class Main{
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



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

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



    } main {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



    } 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 int[] sa = new int[b]; sa new int[b] b for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            sa[i] = a;
        } {
            sa[i] = a;
        } sa[i] = a sa[i] sa i a int[] sb = new int[a]; sb new int[a] a for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            sb[i] = b;
        } {
            sb[i] = b;
        } sb[i] = b sb[i] sb i b if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        } sa.length>sb.length sa.length sa sa.length sb.length sb sb.length {
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            } int in = 0; int in = 0; in 0 in<sa.length in sa.length sa sa.length in++ in++ in {
            System.out.print(sa[in]);
            } {
            System.out.print(sa[in]);
            } System.out.print(sa[in]) System.out.print System.out System System.out sa[in] sa in {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        } for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                } int in = 0; int in = 0; in 0 in<sb.length in sb.length sb sb.length in++ in++ in {
                System.out.print(sb[in]);
                } {
                System.out.print(sb[in]);
                } System.out.print(sb[in]) System.out.print System.out System System.out sb[in] sb in sc.close() sc.close sc String[] args args public class Main{
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



    }
} public class Main{
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();

        int[] sa = new int[b];
        for ( int i = 0;  i < b;  i++ ){
            sa[i] = a;
        }

        int[] sb = new int[a];
        for ( int i = 0;  i < a;  i++ ){
            sb[i] = b;
        }

        if(sa.length>sb.length){
            for(int in = 0; in<sa.length; in++){
            System.out.print(sa[in]);
            }
        } else {
            for(int in = 0; in<sb.length; in++){
                System.out.print(sb[in]);
                }
            
        }

        sc.close();



    }
}
