import java.util.*;

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

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt(); b sc.nextInt() sc.nextInt sc String x = "" x "" y = ""; y "" for (int i = 0; i < a; i++) x += b; int i = 0; int i = 0; i 0 i < a i a i++ i++ i x += b; x += b x b for (int i = 0; i < b; i++) y += a; int i = 0; int i = 0; i 0 i < b i b i++ i++ i y += a; y += a y a System.out.println((x.compareTo(y) < 0) ? x : y) System.out.println System.out System System.out (x.compareTo(y) < 0) ? x : y (x.compareTo(y) < 0) x.compareTo(y) x.compareTo x y 0 x y String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt(), b = sc.nextInt();

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  }
} Main
import java.util.*;

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

    String x = "", y = "";
    for (int i = 0; i < a; i++) x += b;
    for (int i = 0; i < b; i++) y += a;

    System.out.println((x.compareTo(y) < 0) ? x : y);
  }
}