import java.util.Scanner;

public class Main {

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

	}
} import java.util.Scanner; Scanner 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();
		int loop = Math.max(a, b);
		int print = Math.min(a, b);
		for (int i=0;i<loop;i++) {
			System.out.print(print);
		}

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

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

	} 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 int loop = Math.max(a, b); loop Math.max(a, b) Math.max Math a b int print = Math.min(a, b); print Math.min(a, b) Math.min Math a b for (int i=0;i<loop;i++) {
			System.out.print(print);
		} int i=0; int i=0; i 0 i<loop i loop i++ i++ i {
			System.out.print(print);
		} {
			System.out.print(print);
		} System.out.print(print) System.out.print System.out System System.out print 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();
		int loop = Math.max(a, b);
		int print = Math.min(a, b);
		for (int i=0;i<loop;i++) {
			System.out.print(print);
		}

	}
} public class Main {

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

	}
} Main
import java.util.Scanner;

public class Main {

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

	}
}