import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    } main {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line1 = sc.nextLine(); line1 sc.nextLine() sc.nextLine sc String[] array1 = line1.split(" "); array1 line1.split(" ") line1.split line1 " " int a = Integer.parseInt(array1[0]); a Integer.parseInt(array1[0]) Integer.parseInt Integer array1[0] array1 0 int b = Integer.parseInt(array1[1]); b Integer.parseInt(array1[1]) Integer.parseInt Integer array1[1] array1 1 int min = 0; min 0 int max = 10; max 10 if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        } a < b a b {
            min = a;
            max = b;
        } min = a min a max = b max b {
            min = b;
            max = a;
        } min = b min b max = a max a String result = ""; result "" for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        } int i = 0; int i = 0; i 0 i < max i max i++ i++ i {
            String buf = String.valueOf(min);
            result = result + buf;
        } {
            String buf = String.valueOf(min);
            result = result + buf;
        } String buf = String.valueOf(min); buf String.valueOf(min) String.valueOf String min result = result + buf result result + buf result buf System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String line1 = sc.nextLine();
        
        String[] array1 = line1.split(" ");
        int a = Integer.parseInt(array1[0]);
        int b = Integer.parseInt(array1[1]);
        
        int min = 0;
        int max = 10;
        if(a < b)
        {
            min = a;
            max = b;
        }
        else
        {
            min = b;
            max = a;
        }
        
        String result = "";
        
        for(int i = 0; i < max; i++)
        {
            String buf = String.valueOf(min);
            result = result + buf;
        }
        
        System.out.println(result);
    }
}
