    import java.util.*;
	import java.lang.Math;
    public class Main
	{
		public static void main(String args[])
		{
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		}
    } import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main
	{
		public static void main(String args[])
		{
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		}
    } Main public static void main(String args[])
		{
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		} main {
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int[] arr1= new int[100]; arr1 new int[100] 100 int[] arr2= new int[100]; arr2 new int[100] 100 for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			} int i=0; int i=0; i 0 i<a i a i++ i++ i {
				arr1[i]=arr1[i]+b;
			} {
				arr1[i]=arr1[i]+b;
			} arr1[i]=arr1[i]+b arr1[i] arr1 i arr1[i]+b arr1[i] arr1 i b for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			} int i=0; int i=0; i 0 i<b i b i++ i++ i {
				arr2[i]=arr2[i]+a;
			} {
				arr2[i]=arr2[i]+a;
			} arr2[i]=arr2[i]+a arr2[i] arr2 i arr2[i]+a arr2[i] arr2 i a if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			} b<a b a {
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			} for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			} int i=0; int i=0; i 0 i<a i a i++ i++ i {
				System.out.print(""+arr1[i]+"");
			} {
				System.out.print(""+arr1[i]+"");
			} System.out.print(""+arr1[i]+"") System.out.print System.out System System.out ""+arr1[i]+"" ""+arr1[i]+"" "" arr1[i] arr1 i "" {
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			} for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			} int i=0; int i=0; i 0 i<b i b i++ i++ i {
				System.out.print(""+arr2[i]+"");
			} {
				System.out.print(""+arr2[i]+"");
			} System.out.print(""+arr2[i]+"") System.out.print System.out System System.out ""+arr2[i]+"" ""+arr2[i]+"" "" arr2[i] arr2 i "" String args[] args public class Main
	{
		public static void main(String args[])
		{
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		}
    } public class Main
	{
		public static void main(String args[])
		{
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		}
    } Main
    import java.util.*;
	import java.lang.Math;
    public class Main
	{
		public static void main(String args[])
		{
			Scanner scan = new Scanner(System.in);
			int a = scan.nextInt();
			int b = scan.nextInt();
			int[] arr1= new int[100];
			int[] arr2= new int[100];
			for(int i=0;i<a;i++)
			{
				arr1[i]=arr1[i]+b;
			}
			
			for(int i=0;i<b;i++)
			{
				arr2[i]=arr2[i]+a;
			}
			if(b<a){
			for(int i=0;i<a;i++)
			{
				System.out.print(""+arr1[i]+"");
			}
			}
			else{
			for(int i=0;i<b;i++)
			{
				System.out.print(""+arr2[i]+"");
			}
			}
		}
    }