import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String A = scan.next(); A scan.next() scan.next scan String B = scan.next(); B scan.next() scan.next scan char a = A.charAt(0); a A.charAt(0) A.charAt A 0 char b = B.charAt(0); b B.charAt(0) B.charAt B 0 int a_num = a-48; a_num a-48 a 48 int b_num = b-48; b_num b-48 b 48 if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		} a_num > b_num a_num b_num {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		} for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			} int i=0; int i=0; i 0 i<a_num i a_num i++ i++ i {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			} {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			} if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				} i == a_num-1 i a_num-1 a_num 1 {
					System.out.println(B);
				} System.out.println(B) System.out.println System.out System System.out B {
					System.out.print(B);
				} System.out.print(B) System.out.print System.out System System.out B {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		} for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			} int i=0; int i=0; i 0 i<b_num i b_num i++ i++ i {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			} {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			} if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				} i == b_num-1 i b_num-1 b_num 1 {
					System.out.println(A);
				} System.out.println(A) System.out.println System.out System System.out A {
					System.out.print(A);
				} System.out.print(A) System.out.print System.out System System.out A String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		String A = scan.next();
		String B = scan.next();
		char a = A.charAt(0);
		char b = B.charAt(0);
		int a_num = a-48;
		int b_num = b-48;
		
		if(a_num > b_num) {
			for(int i=0;i<a_num;i++) {
				if(i == a_num-1) {
					System.out.println(B);
				}else {
					System.out.print(B);
				}
			}
		}else {
			for(int i=0;i<b_num;i++) {
				if(i == b_num-1) {
					System.out.println(A);
				}else {
					System.out.print(A);
				}
			}
		}
		
		
		
	}

}
