import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    }
} Main public static void main(String[] args) throws Exception {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    } main {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    } Scanner file = new Scanner(System.in); file new Scanner(System.in) int a = file.nextInt() a file.nextInt() file.nextInt file b = file.nextInt(); b file.nextInt() file.nextInt file String aa = ""; aa "" String bb = ""; bb "" for (int i = 0; i < b; i++) aa += a; int i = 0; int i = 0; i 0 i < b i b i++ i++ i aa += a; aa += a aa a for (int i = 0; i < a; i++) bb += b; int i = 0; int i = 0; i 0 i < a i a i++ i++ i bb += b; bb += b bb b if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb); aa.compareTo(bb) <= 0 aa.compareTo(bb) aa.compareTo aa bb 0 System.out.println(aa) System.out.println System.out System System.out aa System.out.println(bb) System.out.println System.out System System.out bb file.close() file.close file String[] args args public class Main {
	public static void main(String[] args) throws Exception {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    }
} public class Main {
	public static void main(String[] args) throws Exception {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    }
} Main
import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception {
     	Scanner file = new Scanner(System.in);
      	int a = file.nextInt(), b = file.nextInt();
      	String aa = "";
      	String bb = "";
        for (int i = 0; i < b; i++) aa += a;
      	for (int i = 0; i < a; i++) bb += b;
      	if (aa.compareTo(bb) <= 0) System.out.println(aa);
      	else System.out.println(bb);
      	file.close();
    }
}
