import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	} main {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = Integer.parseInt(scan.next()); a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int b = Integer.parseInt(scan.next()); b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan String a_s = String.valueOf(a); a_s String.valueOf(a) String.valueOf String a String b_s = String.valueOf(b); b_s String.valueOf(b) String.valueOf String b String resultA = ""; resultA "" String resultB = ""; resultB "" for(int i = 0; i<a; ++i) {
			resultB += b_s;
		} int i = 0; int i = 0; i 0 i<a i a ++i ++i i {
			resultB += b_s;
		} {
			resultB += b_s;
		} resultB += b_s resultB b_s for(int i = 0; i<b; ++i) {
			resultA += a_s;
		} int i = 0; int i = 0; i 0 i<b i b ++i ++i i {
			resultA += a_s;
		} {
			resultA += a_s;
		} resultA += a_s resultA a_s if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		} a > b a b {
			System.out.println(resultB);
		} System.out.println(resultB) System.out.println System.out System System.out resultB {
			System.out.println(resultA);
		} System.out.println(resultA) System.out.println System.out System System.out resultA String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int a = Integer.parseInt(scan.next());
		int b = Integer.parseInt(scan.next());

		String a_s = String.valueOf(a);
		String b_s = String.valueOf(b);

		String resultA = "";
		String resultB = "";

		for(int i = 0; i<a; ++i) {
			resultB += b_s;
		}

		for(int i = 0; i<b; ++i) {
			resultA += a_s;
		}

		if(a > b) {
			System.out.println(resultB);
		} else {
			System.out.println(resultA);
		}
	}
}
