import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    }
}
  import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    } main {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] sl = new String[2]; sl new String[2] 2 int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc Arrays.fill(sl,"") Arrays.fill Arrays sl "" for(int i = 0; i < b; i++){
            sl[0] += a;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            sl[0] += a;
        } {
            sl[0] += a;
        } sl[0] += a sl[0] sl 0 a for(int i = 0; i < a; i++){
            sl[1] += b;
        } int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
            sl[1] += b;
        } {
            sl[1] += b;
        } sl[1] += b sl[1] sl 1 b Arrays.sort(sl) Arrays.sort Arrays sl System.out.println(sl[0]) System.out.println System.out System System.out sl[0] sl 0 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    }
} Main
import java.util.*;
import java.io.*;
import java.math.*;
 
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String[] sl = new String[2];
        int a = sc.nextInt();
        int b = sc.nextInt();
        Arrays.fill(sl,"");
        for(int i = 0; i < b; i++){
            sl[0] += a;
        }
        for(int i = 0; i < a; i++){
            sl[1] += b;
        }
        Arrays.sort(sl);
        System.out.println(sl[0]);
    }
}
 