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();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	}
} 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();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	}
} Main public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	} main {


		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	} 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 StringBuilder sba = new StringBuilder(); sba new StringBuilder() StringBuilder sbb = new StringBuilder(); sbb new StringBuilder() for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		} int i =0; int i =0; i 0 i < b i b i++ i++ i {
			sba.append(String.valueOf(a));
		} {
			sba.append(String.valueOf(a));
		} sba.append(String.valueOf(a)) sba.append sba String.valueOf(a) String.valueOf String a for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		} int i =0; int i =0; i 0 i < a i a i++ i++ i {
			sbb.append(String.valueOf(b));
		} {
			sbb.append(String.valueOf(b));
		} sbb.append(String.valueOf(b)) sbb.append sbb String.valueOf(b) String.valueOf String b String stringA = sba.toString(); stringA sba.toString() sba.toString sba String stringB = sbb.toString(); stringB sbb.toString() sbb.toString sbb if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		} a < b a b {
			System.out.println(stringA);
		} System.out.println(stringA) System.out.println System.out System System.out stringA {
			System.out.println(stringB);
		} System.out.println(stringB) System.out.println System.out System System.out stringB 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();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	}
} public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	}
} 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();
		StringBuilder sba = new StringBuilder();
		StringBuilder sbb = new StringBuilder();
		for(int i =0; i < b; i++) {
			sba.append(String.valueOf(a));
		}

		for(int i =0; i < a; i++) {
			sbb.append(String.valueOf(b));
		}

		String stringA = sba.toString();
		String stringB = sbb.toString();

		if(a < b) {
			System.out.println(stringA);
		}else {
			System.out.println(stringB);
		}
	}
}