import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		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();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		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 int small = 0 small 0 lerge = 0; lerge 0 if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		} a >= b a b {
			lerge = a;
			small = b;
		} lerge = a lerge a small = b small b {
			lerge = b;
			small = a;
		} lerge = b lerge b small = a small a for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		} int i = 0; int i = 0; i 0 i < lerge i lerge i++ i++ i {
			System.out.print(small);
		} {
			System.out.print(small);
		} System.out.print(small) System.out.print System.out System System.out small System.out.println() System.out.println System.out System System.out 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();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		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();//a
		int b = sc.nextInt();//b
		int small = 0, lerge = 0;
		if(a >= b) {
			lerge = a;
			small = b;
		}else{
			lerge = b;
			small = a;
		}
		for(int i = 0; i < lerge; i++) {
			System.out.print(small);
		}
		System.out.println();
	
		
		sc.close();
	}

}
