import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] str_array = in.readLine().split(" "); str_array in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " String a = str_array[0]; a str_array[0] str_array 0 String b = str_array[1]; b str_array[1] str_array 1 String a_result = a; a_result a String b_result = b; b_result b for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    } int cnt = 1; int cnt = 1; cnt 1 cnt<Integer.parseInt(b) cnt Integer.parseInt(b) Integer.parseInt Integer b cnt++ cnt++ cnt {
      a_result = a_result + a;
    } {
      a_result = a_result + a;
    } a_result = a_result + a a_result a_result + a a_result a for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    } int cnt = 1; int cnt = 1; cnt 1 cnt<Integer.parseInt(a) cnt Integer.parseInt(a) Integer.parseInt Integer a cnt++ cnt++ cnt {
      b_result = b_result + b;
    } {
      b_result = b_result + b;
    } b_result = b_result + b b_result b_result + b b_result b System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result) System.out.println System.out System System.out Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result Integer.parseInt(a)<Integer.parseInt(b) Integer.parseInt(a) Integer.parseInt Integer a Integer.parseInt(b) Integer.parseInt Integer b a_result b_result String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str_array = in.readLine().split(" ");
    String a = str_array[0];
    String b = str_array[1];
    String a_result = a;
    String b_result = b;
    for(int cnt = 1; cnt<Integer.parseInt(b); cnt++){
      a_result = a_result + a;
    }
    for(int cnt = 1; cnt<Integer.parseInt(a); cnt++){
      b_result = b_result + b;
    }
    System.out.println(Integer.parseInt(a)<Integer.parseInt(b)?a_result:b_result);
  }
}