import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}
	
	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}
	
	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	}
} Main public static void main(String[] args) {
		System.out.println(solve());
	} main {
		System.out.println(solve());
	} System.out.println(solve()) System.out.println System.out System System.out solve() solve String[] args args public static String solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	} solve {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int M = sc.nextInt(); M sc.nextInt() sc.nextInt sc StringBuffer sb = new StringBuffer(); sb new StringBuffer() int max = 0 max 0 min = 0; min 0 if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		} M > N M N {
			max = M;
			min = N;
		} max = M max M min = N min N {
			max = N;
			min = M;
		} max = N max N min = M min M for (int i = 0; i < max; i++) {
				sb.append(min);
			} int i = 0; int i = 0; i 0 i < max i max i++ i++ i {
				sb.append(min);
			} {
				sb.append(min);
			} sb.append(min) sb.append sb min return sb.toString(); sb.toString() sb.toString sb public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}
	
	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	}
} public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}
	
	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}
	
	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int M = sc.nextInt();
		StringBuffer sb = new StringBuffer();
		int max = 0, min = 0;
		if (M > N) {
			max = M;
			min = N;
		}
		else {
			max = N;
			min = M;
		}
			for (int i = 0; i < max; i++) {
				sb.append(min);
			}
		return sb.toString();
	}
}