import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b flg; flg a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc flg = a - b flg a - b a b if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		} 0 <= flg 0 flg {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} for (int i = 0; i < a; i++) {
				System.out.print(b);
			} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
				System.out.print(b);
			} {
				System.out.print(b);
			} System.out.print(b) System.out.print System.out System System.out b if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		} flg < 0 flg 0 {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		} for (int i = 0; i < b; i++) {
				System.out.print(a);
			} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
				System.out.print(a);
			} {
				System.out.print(a);
			} System.out.print(a) System.out.print System.out System System.out a sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int a, b, flg;

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

		flg = a - b;

		if (0 <= flg) {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} else if (flg < 0) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		}

		sc.close();

	}

}
