import java.util.Scanner;

public class Main {
	/**
	 * Comparing Strings
	 * @param 1 ≤ a ≤ 9
	 * @param 1 ≤ b ≤ 9
	 */
	public static void main(String... args) {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	/**
	 * Comparing Strings
	 * @param 1 ≤ a ≤ 9
	 * @param 1 ≤ b ≤ 9
	 */
	public static void main(String... args) {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	}
} Main /**
	 * Comparing Strings
	 * @param 1 ≤ a ≤ 9
	 * @param 1 ≤ b ≤ 9
	 */
	public static void main(String... args) {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	} try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc StringBuilder sb = new StringBuilder(); sb new StringBuilder() if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			} a < b a b {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} for (int i = 0; i < b; i++) {
					sb.append(a);
				} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
					sb.append(a);
				} {
					sb.append(a);
				} sb.append(a) sb.append sb a {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			} for (int i = 0; i < a; i++) {
					sb.append(b);
				} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
					sb.append(b);
				} {
					sb.append(b);
				} sb.append(b) sb.append sb b System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String... args args public class Main {
	/**
	 * Comparing Strings
	 * @param 1 ≤ a ≤ 9
	 * @param 1 ≤ b ≤ 9
	 */
	public static void main(String... args) {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	}
} public class Main {
	/**
	 * Comparing Strings
	 * @param 1 ≤ a ≤ 9
	 * @param 1 ≤ b ≤ 9
	 */
	public static void main(String... args) {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	}
} Main
import java.util.Scanner;

public class Main {
	/**
	 * Comparing Strings
	 * @param 1 ≤ a ≤ 9
	 * @param 1 ≤ b ≤ 9
	 */
	public static void main(String... args) {
		try (Scanner sc = new Scanner(System.in)) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			StringBuilder sb = new StringBuilder();
			if (a < b) {
				for (int i = 0; i < b; i++) {
					sb.append(a);
				}
			} else {
				for (int i = 0; i < a; i++) {
					sb.append(b);
				}
			}
			System.out.println(sb.toString());
		}
	}
}