import java.util.*;

public class Main {
    public static void main(String[] args) {

        solve_152_B();

        return;
    }

    private static void solve_152_B() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {

        solve_152_B();

        return;
    }

    private static void solve_152_B() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    }
} Main public static void main(String[] args) {

        solve_152_B();

        return;
    } main {

        solve_152_B();

        return;
    } solve_152_B() solve_152_B return; String[] args args private static void solve_152_B() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    } solve_152_B {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc long number_a = 0; number_a 0 long number_b = 0; number_b 0 if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        } a>b a b {
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        } for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            } int i=0; int i=0; i 0 i<a i a i++ i++ i {
                number_b = number_b*10 + b;
            } {
                number_b = number_b*10 + b;
            } number_b = number_b*10 + b number_b number_b*10 + b number_b*10 number_b 10 b String number_B = Long.toString(number_b); number_B Long.toString(number_b) Long.toString Long number_b System.out.println(number_B) System.out.println System.out System System.out number_B {
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        } for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            } int i=0; int i=0; i 0 i<b i b i++ i++ i {
                number_a = number_a*10 + a;
            } {
                number_a = number_a*10 + a;
            } number_a = number_a*10 + a number_a number_a*10 + a number_a*10 number_a 10 a String number_A = Long.toString(number_a); number_A Long.toString(number_a) Long.toString Long number_a System.out.println(number_A) System.out.println System.out System System.out number_A public class Main {
    public static void main(String[] args) {

        solve_152_B();

        return;
    }

    private static void solve_152_B() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    }
} public class Main {
    public static void main(String[] args) {

        solve_152_B();

        return;
    }

    private static void solve_152_B() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {

        solve_152_B();

        return;
    }

    private static void solve_152_B() {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        long number_a = 0;
        long number_b = 0;

        if(a>b){
            for(int i=0; i<a; i++) {
                number_b = number_b*10 + b;
            }
            String number_B = Long.toString(number_b);
            System.out.println(number_B);
        }else{
            for(int i=0; i<b; i++) {
                number_a = number_a*10 + a;
            }
            String number_A = Long.toString(number_a);
            System.out.println(number_A);
        }
    }
}