import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ss; ss char ac ac bc; bc ss = sc.next() ss sc.next() sc.next sc ac = ss.charAt(0) ac ss.charAt(0) ss.charAt ss 0 ss = sc.next() ss sc.next() sc.next sc bc = ss.charAt(0) bc ss.charAt(0) ss.charAt ss 0 int a = ac - '0'; a ac - '0' ac '0' int b = bc - '0'; b bc - '0' bc '0' int s = b; s b char wakame = ac; wakame ac if(a>b){
      s = a; wakame = bc;
    } a>b a b {
      s = a; wakame = bc;
    } s = a s a wakame = bc wakame bc for(int i=0; i<s; ++i){
      System.out.print(wakame);
    } int i=0; int i=0; i 0 i<s i s ++i ++i i {
      System.out.print(wakame);
    } {
      System.out.print(wakame);
    } System.out.print(wakame) System.out.print System.out System System.out wakame String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String ss;
    char ac,bc;
    ss = sc.next();
    ac = ss.charAt(0);
    ss = sc.next();
    bc = ss.charAt(0);
    
    int a = ac - '0';
    int b = bc - '0';
    int s = b;
    char wakame = ac;
    if(a>b){
      s = a; wakame = bc;
    }
    
    for(int i=0; i<s; ++i){
      System.out.print(wakame);
    }
  }
}