import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int ans = 0; ans 0 if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        } a>b a b {
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        } for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            } int i = 0; int i = 0; i 0 i<a i a i++ i++ i {
                ans += b*(Math.pow(10,i));
            } {
                ans += b*(Math.pow(10,i));
            } ans += b*(Math.pow(10,i)) ans b*(Math.pow(10,i)) b (Math.pow(10,i)) Math.pow Math 10 i System.out.println(ans) System.out.println System.out System System.out ans if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        } a<=b a b {
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        } for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            } int i = 0; int i = 0; i 0 i<b i b i++ i++ i {
                ans += a*(Math.pow(10,i));
            } {
                ans += a*(Math.pow(10,i));
            } ans += a*(Math.pow(10,i)) ans a*(Math.pow(10,i)) a (Math.pow(10,i)) Math.pow Math 10 i 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) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int ans = 0;
        if(a>b){
            for(int i = 0;i<a;i++){
                ans += b*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
         if(a<=b){
            for(int i = 0;i<b;i++){
                ans += a*(Math.pow(10,i));
            }
            System.out.println(ans);
        }
    }
}
