import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	}
} Main public static void main(String[] args) {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	} main {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	} Scanner  sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int m =  sc.nextInt(); m sc.nextInt() sc.nextInt sc if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		} n < m n m {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		} for(int i=0;i<m;i++) {
				System.out.print(n);
			} int i=0; int i=0; i 0 i<m i m i++ i++ i {
				System.out.print(n);
			} {
				System.out.print(n);
			} System.out.print(n) System.out.print System.out System System.out n System.out.println() System.out.println System.out System System.out {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		} for(int i=0;i<n;i++) {
				System.out.print(m);
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				System.out.print(m);
			} {
				System.out.print(m);
			} System.out.print(m) System.out.print System.out System System.out m System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner  sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m =  sc.nextInt();
		
		if ( n < m ) {
			for(int i=0;i<m;i++) {
				System.out.print(n);
			}
			System.out.println();
		}else {
			for(int i=0;i<n;i++) {
				System.out.print(m);
			}
			System.out.println();
		}
		
	}
}
