import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

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

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

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

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

		}
	} main {

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] temp = scanner.nextLine().split(" "); temp scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int a = Integer.parseInt(temp[0]); a Integer.parseInt(temp[0]) Integer.parseInt Integer temp[0] temp 0 int b = Integer.parseInt(temp[1]); b Integer.parseInt(temp[1]) Integer.parseInt Integer temp[1] temp 1 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 if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

		} a <= b a b {

			System.out.println(sbA.toString());

		} System.out.println(sbA.toString()) System.out.println System.out System System.out sbA.toString() sbA.toString sbA {

			System.out.println(sbB.toString());

		} System.out.println(sbB.toString()) System.out.println System.out System System.out sbB.toString() sbB.toString sbB String[] args args public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

		}
	}
} public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

		}
	}
} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp = scanner.nextLine().split(" ");
		int a = Integer.parseInt(temp[0]);
		int b = Integer.parseInt(temp[1]);
		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));

		}

		if(a <= b) {

			System.out.println(sbA.toString());

		}else {

			System.out.println(sbB.toString());

		}
	}
}