import java.util.*;

class Main{
	public static void main(String[] args){
		int n,m;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		m = sc.nextInt();
		if(n > m){
			int tmp = m;
			m = n;
			n = tmp;
		}
		for(int i = 0;i < m; ++i){
			System.out.printf("%d",n);
		}
	}
} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		int n,m;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		m = sc.nextInt();
		if(n > m){
			int tmp = m;
			m = n;
			n = tmp;
		}
		for(int i = 0;i < m; ++i){
			System.out.printf("%d",n);
		}
	}
} Main public static void main(String[] args){
		int n,m;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		m = sc.nextInt();
		if(n > m){
			int tmp = m;
			m = n;
			n = tmp;
		}
		for(int i = 0;i < m; ++i){
			System.out.printf("%d",n);
		}
	} main {
		int n,m;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		m = sc.nextInt();
		if(n > m){
			int tmp = m;
			m = n;
			n = tmp;
		}
		for(int i = 0;i < m; ++i){
			System.out.printf("%d",n);
		}
	} int n n m; m Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc m = sc.nextInt() m sc.nextInt() sc.nextInt sc if(n > m){
			int tmp = m;
			m = n;
			n = tmp;
		} n > m n m {
			int tmp = m;
			m = n;
			n = tmp;
		} int tmp = m; tmp m m = n m n n = tmp n tmp for(int i = 0;i < m; ++i){
			System.out.printf("%d",n);
		} int i = 0; int i = 0; i 0 i < m i m ++i ++i i {
			System.out.printf("%d",n);
		} {
			System.out.printf("%d",n);
		} System.out.printf("%d",n) System.out.printf System.out System System.out "%d" n String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		int n,m;
		Scanner sc = new Scanner(System.in);
		n = sc.nextInt();
		m = sc.nextInt();
		if(n > m){
			int tmp = m;
			m = n;
			n = tmp;
		}
		for(int i = 0;i < m; ++i){
			System.out.printf("%d",n);
		}
	}
}