import java.util.*;

class Main{

    public static void main(String args[]) throws Exception{
        Main main = new Main();
    }

    public Main(){
        Scanner scanner = new Scanner(System.in);
        int a, b;
        a = Integer.parseInt(scanner.next());
        b = Integer.parseInt(scanner.next());

        if(a < b){
            for(int i=0;i<b;i++)
                System.out.print(a);
        } else {
            for(int i=0;i<a;i++)
                System.out.print(b);
        }

        System.out.println("");
    }
} import java.util.*; util.* java class Main{

    public static void main(String args[]) throws Exception{
        Main main = new Main();
    }

    public Main(){
        Scanner scanner = new Scanner(System.in);
        int a, b;
        a = Integer.parseInt(scanner.next());
        b = Integer.parseInt(scanner.next());

        if(a < b){
            for(int i=0;i<b;i++)
                System.out.print(a);
        } else {
            for(int i=0;i<a;i++)
                System.out.print(b);
        }

        System.out.println("");
    }
} Main public static void main(String args[]) throws Exception{
        Main main = new Main();
    } main {
        Main main = new Main();
    } Main main = new Main(); main new Main() String args[] args public Main(){
        Scanner scanner = new Scanner(System.in);
        int a, b;
        a = Integer.parseInt(scanner.next());
        b = Integer.parseInt(scanner.next());

        if(a < b){
            for(int i=0;i<b;i++)
                System.out.print(a);
        } else {
            for(int i=0;i<a;i++)
                System.out.print(b);
        }

        System.out.println("");
    } Main {
        Scanner scanner = new Scanner(System.in);
        int a, b;
        a = Integer.parseInt(scanner.next());
        b = Integer.parseInt(scanner.next());

        if(a < b){
            for(int i=0;i<b;i++)
                System.out.print(a);
        } else {
            for(int i=0;i<a;i++)
                System.out.print(b);
        }

        System.out.println("");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a a b; b a = Integer.parseInt(scanner.next()) a Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner b = Integer.parseInt(scanner.next()) b Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner if(a < b){
            for(int i=0;i<b;i++)
                System.out.print(a);
        } else {
            for(int i=0;i<a;i++)
                System.out.print(b);
        } a < b a b {
            for(int i=0;i<b;i++)
                System.out.print(a);
        } for(int i=0;i<b;i++)
                System.out.print(a); int i=0; int i=0; i 0 i<b i b i++ i++ i System.out.print(a); System.out.print(a) System.out.print System.out System System.out a {
            for(int i=0;i<a;i++)
                System.out.print(b);
        } for(int i=0;i<a;i++)
                System.out.print(b); int i=0; int i=0; i 0 i<a i a i++ i++ i System.out.print(b); System.out.print(b) System.out.print System.out System System.out b System.out.println("") System.out.println System.out System System.out ""
import java.util.*;

class Main{

    public static void main(String args[]) throws Exception{
        Main main = new Main();
    }

    public Main(){
        Scanner scanner = new Scanner(System.in);
        int a, b;
        a = Integer.parseInt(scanner.next());
        b = Integer.parseInt(scanner.next());

        if(a < b){
            for(int i=0;i<b;i++)
                System.out.print(a);
        } else {
            for(int i=0;i<a;i++)
                System.out.print(b);
        }

        System.out.println("");
    }
}
