import java.util.*;

public class Main {
		public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		}
} import java.util.*; util.* java public class Main {
		public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		}
} Main public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		} main {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc StringBuilder A = new StringBuilder(); A new StringBuilder() StringBuilder B = new StringBuilder(); B new StringBuilder() for(int i=0; i<b; i++) {
		   A.append(a);
	 } int i=0; int i=0; i 0 i<b i b i++ i++ i {
		   A.append(a);
	 } {
		   A.append(a);
	 } A.append(a) A.append A a for(int i=0; i<a; i++) {
		   B.append(b);
	 } int i=0; int i=0; i 0 i<a i a i++ i++ i {
		   B.append(b);
	 } {
		   B.append(b);
	 } B.append(b) B.append B b if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 } a<b a b {
		 System.out.println(A);
	 } System.out.println(A) System.out.println System.out System System.out A {
		 System.out.println(B);
	 } System.out.println(B) System.out.println System.out System System.out B String[] args args public class Main {
		public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		}
} public class Main {
		public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		}
} Main
import java.util.*;

public class Main {
		public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			int a = sc.nextInt();
			int b = sc.nextInt();
			
	 StringBuilder A = new StringBuilder();
	 StringBuilder B = new StringBuilder();
	 
	 for(int i=0; i<b; i++) {
		   A.append(a);
	 }
	 for(int i=0; i<a; i++) {
		   B.append(b);
	 }
	 if(a<b) {
		 System.out.println(A);
	 }else {
		 System.out.println(B);
	 }
			
		}
}