import java.util.Scanner;

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

 
public class Main {
 
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuffer aString = new StringBuffer();
		StringBuffer bString = new StringBuffer();
		for(int i = 0; i < b; i++) {
			aString.append(a);
		}
		for(int i = 0; i < a; i++) {
			bString.append(b);
		}
		
		if(a < b) {
			System.out.println(aString);
		}else {
			System.out.println(bString);
		}
		sc.close();
	}
}