
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		System.out.println();



	}

} 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 m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		System.out.println();



	}

} Main public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		System.out.println();



	} main {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		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 m=sc.nextInt(); m sc.nextInt() sc.nextInt sc for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		} int i=0; int i=0; i 0 i<Math.max(n, m) i Math.max(n, m) Math.max Math n m i++ i++ i {
			System.out.print(Math.min(n, m));
		} {
			System.out.print(Math.min(n, m));
		} System.out.print(Math.min(n, m)) System.out.print System.out System System.out Math.min(n, m) Math.min Math n m 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 m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		System.out.println();



	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		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 m=sc.nextInt();
		for(int i=0;i<Math.max(n, m);i++) {
			System.out.print(Math.min(n, m));
		}
		System.out.println();



	}

}
