import java.util.Scanner;
import java.util.Arrays;
import java.lang.Integer;
import java.lang.Math;

class Main {
  public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens[] = scanner.nextLine().split(" ");
        int n = Integer.parseInt(tokens[0]);
        int m = Integer.parseInt(tokens[1]);
        int min = Math.min(n,m);
        int max = Math.max(n,m);
        for(int i = 0; i < max; i++) {
        	System.out.print(min);
        }
        
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.lang.Integer; Integer java.lang import java.lang.Math; Math java.lang class Main {
  public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens[] = scanner.nextLine().split(" ");
        int n = Integer.parseInt(tokens[0]);
        int m = Integer.parseInt(tokens[1]);
        int min = Math.min(n,m);
        int max = Math.max(n,m);
        for(int i = 0; i < max; i++) {
        	System.out.print(min);
        }
        
  }
} Main public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens[] = scanner.nextLine().split(" ");
        int n = Integer.parseInt(tokens[0]);
        int m = Integer.parseInt(tokens[1]);
        int min = Math.min(n,m);
        int max = Math.max(n,m);
        for(int i = 0; i < max; i++) {
        	System.out.print(min);
        }
        
  } main {
    	Scanner scanner = new Scanner(System.in);
		String tokens[] = scanner.nextLine().split(" ");
        int n = Integer.parseInt(tokens[0]);
        int m = Integer.parseInt(tokens[1]);
        int min = Math.min(n,m);
        int max = Math.max(n,m);
        for(int i = 0; i < max; i++) {
        	System.out.print(min);
        }
        
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String tokens[] = scanner.nextLine().split(" "); tokens scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int n = Integer.parseInt(tokens[0]); n Integer.parseInt(tokens[0]) Integer.parseInt Integer tokens[0] tokens 0 int m = Integer.parseInt(tokens[1]); m Integer.parseInt(tokens[1]) Integer.parseInt Integer tokens[1] tokens 1 int min = Math.min(n,m); min Math.min(n,m) Math.min Math n m int max = Math.max(n,m); max Math.max(n,m) Math.max Math n m for(int i = 0; i < max; i++) {
        	System.out.print(min);
        } int i = 0; int i = 0; i 0 i < max i max i++ i++ i {
        	System.out.print(min);
        } {
        	System.out.print(min);
        } System.out.print(min) System.out.print System.out System System.out min String[] args args
import java.util.Scanner;
import java.util.Arrays;
import java.lang.Integer;
import java.lang.Math;

class Main {
  public static void main (String[] args) {
    	Scanner scanner = new Scanner(System.in);
		String tokens[] = scanner.nextLine().split(" ");
        int n = Integer.parseInt(tokens[0]);
        int m = Integer.parseInt(tokens[1]);
        int min = Math.min(n,m);
        int max = Math.max(n,m);
        for(int i = 0; i < max; i++) {
        	System.out.print(min);
        }
        
  }
}
