import java.util.*;

public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	}

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

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	}

} Main public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	} main {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int N = scn.nextInt(); N scn.nextInt() scn.nextInt scn int M = scn.nextInt(); M scn.nextInt() scn.nextInt scn int max = Math.max(N, M); max Math.max(N, M) Math.max Math N M int min = Math.min(N, M); min Math.min(N, M) Math.min Math N M String s = ""; s "" for (int i = 0; i < max; i++) {
			s = s + min;
		} int i = 0; int i = 0; i 0 i < max i max i++ i++ i {
			s = s + min;
		} {
			s = s + min;
		} s = s + min s s + min s min System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	}

} public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	}

} Main
import java.util.*;

public class Main{

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int max = Math.max(N, M);
		int min = Math.min(N, M);
		String s = "";
		for (int i = 0; i < max; i++) {
			s = s + min;
		}
		System.out.println(s);
	}

}