import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	} main {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	} Scanner kb = new Scanner(System.in); kb new Scanner(System.in) int a = kb.nextInt(); a kb.nextInt() kb.nextInt kb int b = kb.nextInt(); b kb.nextInt() kb.nextInt kb String c = ""; c "" int count = 0; count 0 if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		} a >= b a b {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} while (count < a) {
				count++;
				c += Integer.toString(b);
			} count < a count a {
				count++;
				c += Integer.toString(b);
			} count++ count c += Integer.toString(b) c Integer.toString(b) Integer.toString Integer b {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		} while (count < b) {
				count++;
				c += Integer.toString(a);
			} count < b count b {
				count++;
				c += Integer.toString(a);
			} count++ count c += Integer.toString(a) c Integer.toString(a) Integer.toString Integer a System.out.println(c) System.out.println System.out System System.out c kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int a = kb.nextInt();
		int b = kb.nextInt();
		String c = "";
		int count = 0;
		if (a >= b) {
			while (count < a) {
				count++;
				c += Integer.toString(b);
			}
		} else {
			while (count < b) {
				count++;
				c += Integer.toString(a);
			}
		}
		System.out.println(c);
		kb.close();
	}
}
