import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  }
} import java.util.Scanner; Scanner 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();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  } main {
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  } 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 int biggerNum = 0; biggerNum 0 int smallerNum = 0; smallerNum 0 if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    } a > b a b {
      biggerNum = a;
      smallerNum = b;
    } biggerNum = a biggerNum a smallerNum = b smallerNum b {
      smallerNum = a;
      biggerNum = b;
    } smallerNum = a smallerNum a biggerNum = b biggerNum b for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    } int i = 0; int i = 0; i 0 i < biggerNum i biggerNum i++ i++ i {
      System.out.print(smallerNum);
    } {
      System.out.print(smallerNum);
    } System.out.print(smallerNum) System.out.print System.out System System.out smallerNum 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();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int biggerNum = 0;
    int smallerNum = 0;

    if( a > b ){
      biggerNum = a;
      smallerNum = b;
    }else{
      smallerNum = a;
      biggerNum = b;
    }

    for(int i = 0; i < biggerNum; i++){
      System.out.print(smallerNum);
    }
  }
}
