import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

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

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	}

} 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 = sc.nextInt();
		int b = sc.nextInt();

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

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

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

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

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	} 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 if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		} a >= b a b {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		} String answer = String.valueOf(b); answer String.valueOf(b) String.valueOf String b for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			} int i = 1; int i = 1; i 1 i < a i a i++ i++ i {

				answer = answer + String.valueOf(b);

			} {

				answer = answer + String.valueOf(b);

			} answer = answer + String.valueOf(b) answer answer + String.valueOf(b) answer String.valueOf(b) String.valueOf String b System.out.println(answer) System.out.println System.out System System.out answer {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		} String answer = String.valueOf(a); answer String.valueOf(a) String.valueOf String a for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			} int i = 1; int i = 1; i 1 i < b i b i++ i++ i {

				answer = answer + String.valueOf(a);

			} {

				answer = answer + String.valueOf(a);

			} answer = answer + String.valueOf(a) answer answer + String.valueOf(a) answer String.valueOf(a) String.valueOf String a System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

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

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

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

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

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

		if(a >= b) {

			String answer = String.valueOf(b);

			for(int i = 1;i < a;i++) {

				answer = answer + String.valueOf(b);

			}
			System.out.println(answer);
		}else {

			String answer = String.valueOf(a);

			for(int i = 1;i < b;i++) {

				answer = answer + String.valueOf(a);

			}
			System.out.println(answer);
		}

	}

}
