import java.util.Scanner;

class Main {

    public static void print_ans(int n, int m) {
	for (int i = 0; i < m; i++) {
	    System.out.print(n);
	}
	System.out.println();
    }
    
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);

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

	if (a < b)
	    print_ans(a, b);
	else
	    print_ans(b, a);
    }

} import java.util.Scanner; Scanner java.util class Main {

    public static void print_ans(int n, int m) {
	for (int i = 0; i < m; i++) {
	    System.out.print(n);
	}
	System.out.println();
    }
    
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);

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

	if (a < b)
	    print_ans(a, b);
	else
	    print_ans(b, a);
    }

} Main public static void print_ans(int n, int m) {
	for (int i = 0; i < m; i++) {
	    System.out.print(n);
	}
	System.out.println();
    } print_ans {
	for (int i = 0; i < m; i++) {
	    System.out.print(n);
	}
	System.out.println();
    } for (int i = 0; i < m; i++) {
	    System.out.print(n);
	} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
	    System.out.print(n);
	} {
	    System.out.print(n);
	} System.out.print(n) System.out.print System.out System System.out n System.out.println() System.out.println System.out System System.out int n n int m m public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);

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

	if (a < b)
	    print_ans(a, b);
	else
	    print_ans(b, a);
    } main {
	Scanner sc = new Scanner(System.in);

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

	if (a < b)
	    print_ans(a, b);
	else
	    print_ans(b, 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 if (a < b)
	    print_ans(a, b);
	else
	    print_ans(b, a); a < b a b print_ans(a, b) print_ans a b print_ans(b, a) print_ans b a String[] args args
import java.util.Scanner;

class Main {

    public static void print_ans(int n, int m) {
	for (int i = 0; i < m; i++) {
	    System.out.print(n);
	}
	System.out.println();
    }
    
    public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);

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

	if (a < b)
	    print_ans(a, b);
	else
	    print_ans(b, a);
    }

}