import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	}
	
	
	
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	}
	
	
	
} Main public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	} main {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in StringBuilder ans = new StringBuilder(); ans new StringBuilder() if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} a >= b a b {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} while(a != 0) {
				ans.append(b);
				a--;
			} a != 0 a 0 {
				ans.append(b);
				a--;
			} ans.append(b) ans.append ans b a-- a System.out.println(Integer.parseInt(ans.toString())) System.out.println System.out System System.out Integer.parseInt(ans.toString()) Integer.parseInt Integer ans.toString() ans.toString ans {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} while(b != 0) {
				ans.append(a);
				b--;
			} b != 0 b 0 {
				ans.append(a);
				b--;
			} ans.append(a) ans.append ans a b-- b System.out.println(Integer.parseInt(ans.toString())) System.out.println System.out System System.out Integer.parseInt(ans.toString()) Integer.parseInt Integer ans.toString() ans.toString ans String args[] args public class Main {
	public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	}
	
	
	
} public class Main {
	public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	}
	
	
	
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		StringBuilder ans = new StringBuilder();
		if(a >= b) {
			while(a != 0) {
				ans.append(b);
				a--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		} else {
			while(b != 0) {
				ans.append(a);
				b--;
			}
			System.out.println(Integer.parseInt(ans.toString()));
		}
	}
	
	
	
}
