import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i i a a b; b String N="" N "" M=""; M "" a = scan.nextInt() a scan.nextInt() scan.nextInt scan b=scan.nextInt() b scan.nextInt() scan.nextInt scan for(i=0; i<b; i++){
            N = N+a;
        } i=0; i=0 i 0 i<b i b i++ i++ i {
            N = N+a;
        } {
            N = N+a;
        } N = N+a N N+a N a for(i=0; i<a; i++){
            M = M+b;
        } i=0; i=0 i 0 i<a i a i++ i++ i {
            M = M+b;
        } {
            M = M+b;
        } M = M+b M M+b M b if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        } N.compareTo(M)<=0 N.compareTo(M) N.compareTo N M 0 {
            System.out.println(N);
        } System.out.println(N) System.out.println System.out System System.out N {
            System.out.println(M);
        } System.out.println(M) System.out.println System.out System System.out M String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int i, a, b;
        String N="", M="";
        a = scan.nextInt();
        b=scan.nextInt();
        for(i=0; i<b; i++){
            N = N+a;
        }
        for(i=0; i<a; i++){
            M = M+b;
        }
        if(N.compareTo(M)<=0) {
            System.out.println(N);
        }else{
            System.out.println(M);
        }
    }
}
