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();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	}
} 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();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	} 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 String ab = ""; ab "" String ba = ""; ba "" for (int i = 0; i < b; i++) {
			ab += a;
		} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
			ab += a;
		} {
			ab += a;
		} ab += a ab a for (int i = 0; i < a; i++) {
			ba += b;
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			ba += b;
		} {
			ba += b;
		} ba += b ba b if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		} a <= b a b {
			System.out.println(ab);
		} System.out.println(ab) System.out.println System.out System System.out ab if (b < a) {
			System.out.println(ba);
		} b < a b a {
			System.out.println(ba);
		} System.out.println(ba) System.out.println System.out System System.out ba sc.close() sc.close sc 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();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	}
} 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();

		String ab = "";
		String ba = "";

		for (int i = 0; i < b; i++) {
			ab += a;
		}
		for (int i = 0; i < a; i++) {
			ba += b;
		}

		if (a <= b) {
			System.out.println(ab);
		} else if (b < a) {
			System.out.println(ba);
		}

		sc.close();
	}
}
