
import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	}
}

 import java.io.*; io.* java import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	}
} Main public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String []s=br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b); a!=b a b {
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		} if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			} a>b a b {			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			} for(int i=1;i<=a;i++)
					out.print(b); int i=1; int i=1; i 1 i<=a i a i++ i++ i out.print(b); out.print(b) out.print out b out.println() out.println out {			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			} for(int i=1;i<=b;i++)
					out.print(a); int i=1; int i=1; i 1 i<=b i b i++ i++ i out.print(a); out.print(a) out.print out a out.println() out.println out for(int i=1;i<=a;i++)
					out.print(b); int i=1; int i=1; i 1 i<=a i a i++ i++ i out.print(b); out.print(b) out.print out b out.println() out.println out String []args args public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	}
} public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	}
} Main

import java.io.*;
import java.util.*;
import static java.lang.System.*;
import static java.lang.Math.*;

public class Main
{
	public static void main(String []args)throws IOException
	{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String []s=br.readLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		
		if(a!=b)
		{
			if(a>b)
			{			
				for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
			}
			else
			{			
				for(int i=1;i<=b;i++)
					out.print(a);
				out.println();
			}
			
		}
		else
			for(int i=1;i<=a;i++)
					out.print(b);
				out.println();
	}
}


