import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc StringBuffer sbA = new StringBuffer(); sbA new StringBuffer() StringBuffer sbB = new StringBuffer(); sbB new StringBuffer() for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
			String S = String.valueOf(a);
			sbA.append(S);
		} {
			String S = String.valueOf(a);
			sbA.append(S);
		} String S = String.valueOf(a); S String.valueOf(a) String.valueOf String a sbA.append(S) sbA.append sbA S for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
			String S = String.valueOf(b);
			sbB.append(S);
		} {
			String S = String.valueOf(b);
			sbB.append(S);
		} String S = String.valueOf(b); S String.valueOf(b) String.valueOf String b sbB.append(S) sbB.append sbB S String A = sbA.toString(); A sbA.toString() sbA.toString sbA String B = sbB.toString(); B sbB.toString() sbB.toString sbB if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		} a < b a b {
			System.out.println(A);
		} System.out.println(A) System.out.println System.out System System.out A {
			System.out.println(B);
		} System.out.println(B) System.out.println System.out System System.out B String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		sc.close();

		StringBuffer sbA = new StringBuffer();
		StringBuffer sbB = new StringBuffer();
		for(int i = 0; i < b; i++) {
			String S = String.valueOf(a);
			sbA.append(S);
		}
		for(int i = 0; i < a; i++) {
			String S = String.valueOf(b);
			sbB.append(S);
		}
		String A = sbA.toString();
		String B = sbB.toString();
		if(a < b) {
			System.out.println(A);
		}else {
			System.out.println(B);
		}
	}
}