import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder buf = new StringBuilder();
		
		String strA = String.valueOf(a);
		String strB = String.valueOf(b);
		
		if (a > b) {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} else {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		}
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder buf = new StringBuilder();
		
		String strA = String.valueOf(a);
		String strB = String.valueOf(b);
		
		if (a > b) {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} else {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder buf = new StringBuilder();
		
		String strA = String.valueOf(a);
		String strB = String.valueOf(b);
		
		if (a > b) {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} else {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder buf = new StringBuilder();
		
		String strA = String.valueOf(a);
		String strB = String.valueOf(b);
		
		if (a > b) {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} else {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		}
	} 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 StringBuilder buf = new StringBuilder(); buf new StringBuilder() String strA = String.valueOf(a); strA String.valueOf(a) String.valueOf String a String strB = String.valueOf(b); strB String.valueOf(b) String.valueOf String b if (a > b) {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} else {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		} a > b a b {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} for (int i=0; i<a; i++) {
				buf.append(strB);
			} int i=0; int i=0; i 0 i<a i a i++ i++ i {
				buf.append(strB);
			} {
				buf.append(strB);
			} buf.append(strB) buf.append buf strB System.out.println(buf) System.out.println System.out System System.out buf {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		} for (int i=0; i<b; i++) {
				buf.append(strA);
			} int i=0; int i=0; i 0 i<b i b i++ i++ i {
				buf.append(strA);
			} {
				buf.append(strA);
			} buf.append(strA) buf.append buf strA System.out.println(buf) System.out.println System.out System System.out buf String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder buf = new StringBuilder();
		
		String strA = String.valueOf(a);
		String strB = String.valueOf(b);
		
		if (a > b) {
			for (int i=0; i<a; i++) {
				buf.append(strB);
			}
			System.out.println(buf);
		} else {
			for (int i=0; i<b; i++) {
				buf.append(strA);
			}
			System.out.println(buf);
		}
	}
}