import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	}
	
	private static String buildStr(int base, int times) {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	}
	
	private static String buildStr(int base, int times) {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	}
} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	} try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		} {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			} a < b a b {
				System.out.println(buildStr(a,b));
			} System.out.println(buildStr(a,b)) System.out.println System.out System System.out buildStr(a,b) buildStr a b {
				System.out.println(buildStr(b,a));
			} System.out.println(buildStr(b,a)) System.out.println System.out System System.out buildStr(b,a) buildStr b a String[] args args private static String buildStr(int base, int times) {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	} buildStr {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	} StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		} int i = 0 ; int i = 0 ; i 0 i < times i times i++ i++ i {
			sb.append(String.valueOf(base));
		} {
			sb.append(String.valueOf(base));
		} sb.append(String.valueOf(base)) sb.append sb String.valueOf(base) String.valueOf String base return sb.toString(); sb.toString() sb.toString sb int base base int times times public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	}
	
	private static String buildStr(int base, int times) {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	}
} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	}
	
	private static String buildStr(int base, int times) {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
			if ( a < b ) {
				System.out.println(buildStr(a,b));
			}
			else {
				System.out.println(buildStr(b,a));
			}

		}
	}
	
	private static String buildStr(int base, int times) {
		StringBuilder sb = new StringBuilder();
		
		for(int i = 0 ; i < times ; i++ ) {
			sb.append(String.valueOf(base));
		}
		
		return sb.toString();
		
	}
}