import java.util.*;

public class Main{
    public static void main(String[] args){
        new Main().A();
    }

    void A(){
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        new Main().A();
    }

    void A(){
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    }
} Main public static void main(String[] args){
        new Main().A();
    } main {
        new Main().A();
    } new Main().A() new Main().A new Main() String[] args args void A(){
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    } A {
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    } int a a b; b Scanner sc=new Scanner(System.in); sc new Scanner(System.in) a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc int n=0; n 0 if(a>b){
            n=a;
            a=b;
            b=n;
        } a>b a b {
            n=a;
            a=b;
            b=n;
        } n=a n a a=b a b b=n b n StringBuilder sb=new StringBuilder(); sb new StringBuilder() for(int i=0;i<b;i++){
            sb.append(a);
        } int i=0; int i=0; i 0 i<b i b i++ i++ i {
            sb.append(a);
        } {
            sb.append(a);
        } sb.append(a) sb.append sb a System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb public class Main{
    public static void main(String[] args){
        new Main().A();
    }

    void A(){
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    }
} public class Main{
    public static void main(String[] args){
        new Main().A();
    }

    void A(){
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        new Main().A();
    }

    void A(){
        int a,b;

        Scanner sc=new Scanner(System.in);

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

        int n=0;

        if(a>b){
            n=a;
            a=b;
            b=n;
        }

        StringBuilder sb=new StringBuilder();

        for(int i=0;i<b;i++){
            sb.append(a);
        }

        System.out.println(sb.toString());
    }
}