import java.util.*;

class Main {
	Scanner sc;
	
	private void calc() {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a > b) {
			int t = b; b = a; a = t;
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < b; i++) sb.append(a);

		System.out.println(sb);
	}

	public static void main(String[] args) {
		new Main().calc();
	}
} import java.util.*; util.* java class Main {
	Scanner sc;
	
	private void calc() {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a > b) {
			int t = b; b = a; a = t;
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < b; i++) sb.append(a);

		System.out.println(sb);
	}

	public static void main(String[] args) {
		new Main().calc();
	}
} Main Scanner sc; sc private void calc() {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a > b) {
			int t = b; b = a; a = t;
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < b; i++) sb.append(a);

		System.out.println(sb);
	} calc {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a > b) {
			int t = b; b = a; a = t;
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < b; i++) sb.append(a);

		System.out.println(sb);
	} 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 if (a > b) {
			int t = b; b = a; a = t;
		} a > b a b {
			int t = b; b = a; a = t;
		} int t = b; t b b = a b a a = t a t StringBuilder sb = new StringBuilder(); sb new StringBuilder() 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 public static void main(String[] args) {
		new Main().calc();
	} main {
		new Main().calc();
	} new Main().calc() new Main().calc new Main() String[] args args
import java.util.*;

class Main {
	Scanner sc;
	
	private void calc() {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a > b) {
			int t = b; b = a; a = t;
		}
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < b; i++) sb.append(a);

		System.out.println(sb);
	}

	public static void main(String[] args) {
		new Main().calc();
	}
}
