import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int m = Integer.parseInt(sc.next()); m Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc StringBuilder sb = new StringBuilder(); sb new StringBuilder() if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		} n < m n m {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} 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 {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		} for (int i = 0; i < n; i++) {
				sb.append(m);
			} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
				sb.append(m);
			} {
				sb.append(m);
			} sb.append(m) sb.append sb m System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int m = Integer.parseInt(sc.next());
		StringBuilder sb = new StringBuilder();
		if (n < m) {
			for (int i = 0; i < m; i++) {
				sb.append(n);
			}
		} else {
			for (int i = 0; i < n; i++) {
				sb.append(m);
			}
		}
		System.out.println(sb);
	}

}
