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) {
			repeat(a, b);
		}else {
			repeat(b, a);
		}

	}

	private static void repeat(int a, int b) {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	}

} 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) {
			repeat(a, b);
		}else {
			repeat(b, a);
		}

	}

	private static void repeat(int a, int b) {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		if (a < b) {
			repeat(a, b);
		}else {
			repeat(b, a);
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		if (a < b) {
			repeat(a, b);
		}else {
			repeat(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) {
			repeat(a, b);
		}else {
			repeat(b, a);
		} a < b a b {
			repeat(a, b);
		} repeat(a, b) repeat a b {
			repeat(b, a);
		} repeat(b, a) repeat b a String[] args args private static void repeat(int a, int b) {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	} repeat {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	} for (int i = 0; i < b; i++) {
			System.out.print(a);
		} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
			System.out.print(a);
		} {
			System.out.print(a);
		} System.out.print(a) System.out.print System.out System System.out a int a a int b b 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) {
			repeat(a, b);
		}else {
			repeat(b, a);
		}

	}

	private static void repeat(int a, int b) {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	}

} 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) {
			repeat(a, b);
		}else {
			repeat(b, a);
		}

	}

	private static void repeat(int a, int b) {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	}

} 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) {
			repeat(a, b);
		}else {
			repeat(b, a);
		}

	}

	private static void repeat(int a, int b) {
		for (int i = 0; i < b; i++) {
			System.out.print(a);
		}
	}

}
