import java.util.Scanner;
class Main{
  public static void main (String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int big = Math.max(a,b);
    int small = Math.min(a,b);
    String ans = "";
    for(int i=0;i<big;i++){
      ans += small;
    }
    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main (String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int big = Math.max(a,b);
    int small = Math.min(a,b);
    String ans = "";
    for(int i=0;i<big;i++){
      ans += small;
    }
    System.out.println(ans);
  }
} Main public static void main (String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int big = Math.max(a,b);
    int small = Math.min(a,b);
    String ans = "";
    for(int i=0;i<big;i++){
      ans += small;
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int big = Math.max(a,b);
    int small = Math.min(a,b);
    String ans = "";
    for(int i=0;i<big;i++){
      ans += small;
    }
    System.out.println(ans);
  } 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 big = Math.max(a,b); big Math.max(a,b) Math.max Math a b int small = Math.min(a,b); small Math.min(a,b) Math.min Math a b String ans = ""; ans "" for(int i=0;i<big;i++){
      ans += small;
    } int i=0; int i=0; i 0 i<big i big i++ i++ i {
      ans += small;
    } {
      ans += small;
    } ans += small ans small System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;
class Main{
  public static void main (String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int big = Math.max(a,b);
    int small = Math.min(a,b);
    String ans = "";
    for(int i=0;i<big;i++){
      ans += small;
    }
    System.out.println(ans);
  }
}