import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    } main {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    } 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 if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        } a >= b a b {
          int tmp = a;
          a = b;
          b = tmp;
        } int tmp = a; tmp a a = b a b b = tmp b tmp String ans=""; ans "" for (int i = 0; i < b; i++) {
            ans = ans + a;
        } int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
            ans = ans + a;
        } {
            ans = ans + a;
        } ans = ans + a ans ans + a ans a System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if(a >= b){
          int tmp = a;
          a = b;
          b = tmp;
        }
        String ans="";
        for (int i = 0; i < b; i++) {
            ans = ans + a;
        }
        System.out.println(ans);
    }
}
