//package atcoder;
 
import java.util.*;
import java.math.BigDecimal;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	}
} import java.util.*; util.* java import java.math.BigDecimal; BigDecimal java.math public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	} 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 String s = null; s null if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		} a<b a b {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		} s = String.valueOf(a) s String.valueOf(a) String.valueOf String a for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			} int i=1; int i=1; i 1 i<b i b i++ i++ i {
				s += String.valueOf(a);
			} {
				s += String.valueOf(a);
			} s += String.valueOf(a) s String.valueOf(a) String.valueOf String a {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		} s = String.valueOf(b) s String.valueOf(b) String.valueOf String b for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			} int j=1; int j=1; j 1 j<a j a j++ j++ j {
				s += String.valueOf(b);
			} {
				s += String.valueOf(b);
			} s += String.valueOf(b) s String.valueOf(b) String.valueOf String b System.out.println(s) System.out.println System.out System System.out s 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();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	}
} Main
//package atcoder;
 
import java.util.*;
import java.math.BigDecimal;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		String s = null;
		if(a<b) {
			s = String.valueOf(a);
			for(int i=1;i<b;i++) {
				s += String.valueOf(a);
			}
		}
		else {
			s = String.valueOf(b);
			for(int j=1;j<a;j++) {
				s += String.valueOf(b);
			}
		}
		System.out.println(s);
	}
}