import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan scan.close() scan.close scan for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		} int i=0; int i=0; i 0 i<Math.max(a, b) i Math.max(a, b) Math.max Math a b i++ i++ i {
			System.out.print(Math.min(a, b));
		} {
			System.out.print(Math.min(a, b));
		} System.out.print(Math.min(a, b)) System.out.print System.out System System.out Math.min(a, b) Math.min Math a b System.out.println() System.out.println System.out System System.out String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		for(int i=0;i<Math.max(a, b);i++) {
			System.out.print(Math.min(a, b));
		}
		System.out.println();

	}
}