import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	} 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 StringBuilder A = new StringBuilder(); A new StringBuilder() StringBuilder B = new StringBuilder(); B new StringBuilder() for (int i = 0; i < b; i++) A.append(a); int i = 0; int i = 0; i 0 i < b i b i++ i++ i A.append(a); A.append(a) A.append A a for (int i = 0; i < a; i++) B.append(b); int i = 0; int i = 0; i 0 i < a i a i++ i++ i B.append(b); B.append(b) B.append B b System.out.println(a < b ? A : B) System.out.println System.out System System.out a < b ? A : B a < b a b A B 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();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	}
} Main
import java.util.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder A = new StringBuilder();
		StringBuilder B = new StringBuilder();
		for (int i = 0; i < b; i++) A.append(a);
		for (int i = 0; i < a; i++) B.append(b);
		System.out.println(a < b ? A : B);
	}
}