import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	}
} Main public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	} main {
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		} a >= b a b {
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		} for(int i = 0; i < a; i++){
				System.out.print(b);
			} int i = 0; int i = 0; i 0 i < a i a i++ i++ i {
				System.out.print(b);
			} {
				System.out.print(b);
			} System.out.print(b) System.out.print System.out System System.out b {
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		} for(int i = 0; i < b; i++){
				System.out.print(a);
			} int i = 0; int i = 0; i 0 i < b i b i++ i++ i {
				System.out.print(a);
			} {
				System.out.print(a);
			} System.out.print(a) System.out.print System.out System System.out a stdIn.close() stdIn.close stdIn String[] args args public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	}
} public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner stdIn = new Scanner(System.in);
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		if(a >= b){
			for(int i = 0; i < a; i++){
				System.out.print(b);
			}
		}
		else{
			for(int i = 0; i < b; i++){
				System.out.print(a);
			}
		}
		stdIn.close();
	}
}
