import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String b = sc.next(); b sc.next() sc.next sc String ansa =""; ansa "" String ansb =""; ansb "" int ia = Integer.parseInt(a); ia Integer.parseInt(a) Integer.parseInt Integer a int ib = Integer.parseInt(b); ib Integer.parseInt(b) Integer.parseInt Integer b for(int i = 0;i<ia;i++){
			ansb+=b;
		} int i = 0; int i = 0; i 0 i<ia i ia i++ i++ i {
			ansb+=b;
		} {
			ansb+=b;
		} ansb+=b ansb b for(int i = 0;i<ib;i++){
			ansa+=a;
		} int i = 0; int i = 0; i 0 i<ib i ib i++ i++ i {
			ansa+=a;
		} {
			ansa+=a;
		} ansa+=a ansa a if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		} ia<=ib ia ib {
			System.out.println(ansa);
		} System.out.println(ansa) System.out.println System.out System System.out ansa {
			System.out.println(ansb);
		} System.out.println(ansb) System.out.println System.out System System.out ansb String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		String ansa ="";
		String ansb ="";
		int ia = Integer.parseInt(a);
		int ib = Integer.parseInt(b);
		for(int i = 0;i<ia;i++){
			ansb+=b;
		}
		for(int i = 0;i<ib;i++){
			ansa+=a;
		}
		if(ia<=ib){
			System.out.println(ansa);
		}else{
			System.out.println(ansb);
		}
	}
}