import java.util.*;
import java.lang.*;
import java.io.*;

class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		
		String s = String.valueOf(min);
		String ans = s;
		
		for(int i =1; i<=max-1; i++){
		
		s += ans;
		}
		
		
		System.out.println(s);

	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		
		String s = String.valueOf(min);
		String ans = s;
		
		for(int i =1; i<=max-1; i++){
		
		s += ans;
		}
		
		
		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();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		
		String s = String.valueOf(min);
		String ans = s;
		
		for(int i =1; i<=max-1; i++){
		
		s += ans;
		}
		
		
		System.out.println(s);

	} main {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		
		String s = String.valueOf(min);
		String ans = s;
		
		for(int i =1; i<=max-1; i++){
		
		s += ans;
		}
		
		
		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 int min = Math.min(a,b); min Math.min(a,b) Math.min Math a b int max = Math.max(a,b); max Math.max(a,b) Math.max Math a b String s = String.valueOf(min); s String.valueOf(min) String.valueOf String min String ans = s; ans s for(int i =1; i<=max-1; i++){
		
		s += ans;
		} int i =1; int i =1; i 1 i<=max-1 i max-1 max 1 i++ i++ i {
		
		s += ans;
		} {
		
		s += ans;
		} s += ans s ans System.out.println(s) System.out.println System.out System System.out s String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;

class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		
		String s = String.valueOf(min);
		String ans = s;
		
		for(int i =1; i<=max-1; i++){
		
		s += ans;
		}
		
		
		System.out.println(s);

	}
}