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();

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	}

	static String makeString(int n, int m) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	}

} 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();

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	}

	static String makeString(int n, int m) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	}

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

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

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

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

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	} 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 String sa = makeString(a, b); sa makeString(a, b) makeString a b String sb = makeString(b, a); sb makeString(b, a) makeString b a String ans = sa.compareTo(sb) < 0 ? sa : sb; ans sa.compareTo(sb) < 0 ? sa : sb sa.compareTo(sb) < 0 sa.compareTo(sb) sa.compareTo sa sb 0 sa sb System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args static String makeString(int n, int m) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	} makeString {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	} StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0; i < m; i++) {
			sb.append(n);
		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {
			sb.append(n);
		} {
			sb.append(n);
		} sb.append(n) sb.append sb n return sb.toString(); sb.toString() sb.toString sb int n n int m m public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

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

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	}

	static String makeString(int n, int m) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	}

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

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

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	}

	static String makeString(int n, int m) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	}

} 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();

		String sa = makeString(a, b);
		String sb = makeString(b, a);

		String ans = sa.compareTo(sb) < 0 ? sa : sb;

		System.out.println(ans);

		sc.close();
	}

	static String makeString(int n, int m) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < m; i++) {
			sb.append(n);
		}
		return sb.toString();
	}

}
