import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  }
} import java.util.*; util.* java import java.util.Collections; Collections 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();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  } 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 sc.close() sc.close sc int bigger = Math.max(A, B); bigger Math.max(A, B) Math.max Math A B int smaller = Math.min(A, B); smaller Math.min(A, B) Math.min Math A B StringBuilder S = new StringBuilder(); S new StringBuilder() for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    } int i = 0; int i = 0; i 0 i < bigger i bigger i++ i++ i {
      S.append(smaller);
    } {
      S.append(smaller);
    } S.append(smaller) S.append S smaller System.out.println(S) System.out.println System.out System System.out S 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();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  }
} Main
import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    sc.close();
    int bigger = Math.max(A, B);
    int smaller = Math.min(A, B);
    StringBuilder S = new StringBuilder();
    for (int i = 0; i < bigger; i++) {
      S.append(smaller);
    }
    System.out.println(S);
  }
}
