import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	}
} import java.util.Scanner; Scanner 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();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	} main {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	} 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 StringBuilder sb = new StringBuilder(); sb new StringBuilder() if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		} a >= b a b {
			for(int i = 0; i < a; i++) sb.append(b);
		} for(int i = 0; i < a; i++) sb.append(b); int i = 0; int i = 0; i 0 i < a i a i++ i++ i sb.append(b); sb.append(b) sb.append sb b {
			for(int i = 0; i < b; i++) sb.append(a);
		} for(int i = 0; i < b; i++) sb.append(a); int i = 0; int i = 0; i 0 i < b i b i++ i++ i sb.append(a); sb.append(a) sb.append sb a System.out.println(sb) System.out.println System.out System System.out 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();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sb = new StringBuilder();

		if(a >= b) {
			for(int i = 0; i < a; i++) sb.append(b);
		} else {
			for(int i = 0; i < b; i++) sb.append(a);
		}

		System.out.println(sb);
	}
}