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();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	}
} 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();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	}
} 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);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	} 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);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	} 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 StringBuilder sb = new StringBuilder(); sb new StringBuilder() for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		} int i = 0; int i = 0; i 0 i < max i max i++ i++ i {
			sb.append(String.valueOf(min));
		} {
			sb.append(String.valueOf(min));
		} sb.append(String.valueOf(min)) sb.append sb String.valueOf(min) String.valueOf String min System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb 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();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	}
} public 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);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	}
} 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();
		int min = Math.min(a,b);
		int max = Math.max(a,b);
		StringBuilder sb = new StringBuilder();
		for(int i = 0;i < max;i++){
			sb.append(String.valueOf(min));
		}
		System.out.println(sb.toString());
	}
}