import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	}

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

	public static void main(String[] args) {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	}

} Main public static void main(String[] args) {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	} main {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	} int a = 0; a 0 int b = 0; b 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc boolean aFlag = false; aFlag false if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		} a < b a b {
			aFlag = true;
		} aFlag = true aFlag true {
			aFlag = false;
		} aFlag = false aFlag false if (aFlag) {
			for (int i = 0; i < b; i++) {
				System.out.print(a);
			}
		} else {
			for (int i = 0; i < a; i++) {
				System.out.print(b);
			}
		} aFlag {
			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 {
			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 String[] args args public class Main {

	public static void main(String[] args) {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	}

} public class Main {

	public static void main(String[] args) {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a = 0;
		int b = 0;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();

		boolean aFlag = false;

		if (a < b) {
			aFlag = true;
		} else {
			aFlag = false;
		}

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

	}

}
