import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

public class Main
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util import java.io.File; File java.io import java.io.FileNotFoundException; FileNotFoundException java.io public class Main
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  }
} Main public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  } main {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner if(b < a){
      int temp = a;
      a = b;
      b = temp;
    } b < a b a {
      int temp = a;
      a = b;
      b = temp;
    } int temp = a; temp a a = b a b b = temp b temp String stringA = Integer.toString(a); stringA Integer.toString(a) Integer.toString Integer a String ans = ""; ans "" for(int i = 0 ; i < b ; i++)
      ans += stringA; int i = 0 ; int i = 0 ; i 0 i < b i b i++ i++ i ans += stringA; ans += stringA ans stringA System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  }
} public class Main
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  }
} Main
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

public class Main
{
  public static void main(String[] args) throws FileNotFoundException
  {
    Scanner scanner = new Scanner(System.in);//new File("input.txt"));
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    if(b < a){
      int temp = a;
      a = b;
      b = temp;
    }
    String stringA = Integer.toString(a);
    String ans = "";
    for(int i = 0 ; i < b ; i++)
      ans += stringA;
    System.out.println(ans);
  }
}
