import java.util.Scanner;

public class Main {
	public static void main(String[] args){



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	}

}
/*
class City{
	int order;
	int prefecture;
	int year;
	int number;
	City(int order,int prefecture, int year){
		this.order = order;
		this.prefecture = prefecture;
		this.year = year;
	}
}
*/ import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	}

} Main public static void main(String[] args){



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	} main {



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int k = sc.nextInt(); k sc.nextInt() sc.nextInt sc if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		} n<k n k {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		} for(int i =0;i<k;i++) {
				System.out.print(n);
			} int i =0; int i =0; i 0 i<k i k i++ i++ i {
				System.out.print(n);
			} {
				System.out.print(n);
			} System.out.print(n) System.out.print System.out System System.out n {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		} for(int i =0;i<n;i++) {
				System.out.print(k);
			} int i =0; int i =0; i 0 i<n i n i++ i++ i {
				System.out.print(k);
			} {
				System.out.print(k);
			} System.out.print(k) System.out.print System.out System System.out k System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
	public static void main(String[] args){



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	}

} public class Main {
	public static void main(String[] args){



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){



		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();

		int k = sc.nextInt();

		if(n<k) {
			for(int i =0;i<k;i++) {
				System.out.print(n);
			}
		}else {
			for(int i =0;i<n;i++) {
				System.out.print(k);
			}
		}
		System.out.println("");

	}

}
/*
class City{
	int order;
	int prefecture;
	int year;
	int number;
	City(int order,int prefecture, int year){
		this.order = order;
		this.prefecture = prefecture;
		this.year = year;
	}
}
*/
